File serving

In file serving, Web applications can serve static file types, such as HTML. File-serving attributes are used by the servlet that implements file-serving behavior.

The file-serving behavior is implemented by setting the fileservingenabled property to true when configuring the Web module.

Example attributes:

bufferSize
Sets buffer size that is used for serving static files.
extendedDocumentRoot
Enables you to configure an application with one or more directory paths from which you can serve static files and Java ServerPages (JSP) files. You can use this attribute when an application requires access to files that exist outside of the application Web archive (WAR) directory. For example, if several applications require access to a set of common files, you can place the common files in a directory to which you can link each application as an extended document root directory.

Use this attribute in addition to the contextRoot attribute.

For more information, see JSP engine configuration parameters.

file.serving.patterns.allow
Specifies that only files matching the specified pattern are served.
file.serving.patterns.deny
Specifies that files that match the specified file pattern are denied



Related reference
Web applications: Resources for learning
Options for the AdminApp object install, installInteractive, edit, editInteractive, update, and updateInteractive commands
JSP engine configuration parameters
Concept topic    

Terms of Use | Feedback

Last updated: Aug 29, 2010 5:25:00 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-base-dist&topic=cweb_flserv
File name: cweb_flserv.html