Web-app

From CauchoWiki

Jump to: navigation, search


The <web-app> allows all the Environment configuration as well as the following:

directivemeaningdefault
access-logConfigures an <access-log> specific to the web-app
active-wait-timehow long to wait for the web-app to start before returning a 503
allow-servlet-elallow EL expressions in <servlet> init-param directives.
<archive-path>location of the web-app's .war file
cache-mappingConfigures the expires time for cacheable pages
cookie-http-onlysets the HttpOnly attribute of the session cookie
context-paramconfigures the ServletContext.getContextParam() values
context-pathoverrides the default context-path for the web-app
dispatch-wraps-filtersif true, RequestDispatcher simply wraps the requsts for filtersfalse
display-nameinformational: debug name for the web-app
distributableinformational: marks the web-app as clusterabletrue
ear-deployconfigures a directory for .ear expansion
ejb-local-refinformational: describes local EJBs used in the web-app
ejb-refinformational: describes remote EJBs used in the web-app
error-pageconfigures user-specified error pages
filterconfigures a filter
filter-mappingmaps a filter to a url
idle-timefor lazy-load web-apps, specifies how long the web-app can remain idle before closing
jspconfigures the jsp (obsolete)
jsp-configconfigures the jsp
listenerconfigures a listener for web-app events
login-configconfigures the servlet-standard login mechanism
message-destinationinformational: describes a JMS destination in the web-app
mime-mappingconfigures Content-Type values based on filename extensions
multipart-formconfigures file uploading
path-mappingconfigures getRealPath aliasing
<prologue>web-app configuration which should apply before the web-app-default
resource-env-refinformational: describes JNDI resources used in the web-app
<redeploy-check-interval>how long Resin should wait to redeploy a failed web-app (3.0.19) 60s
<redeploy-mode>how Resin will restart a changed web-app
<rewrite-dispatch>rewrites URLs and returns error pages and forwarding
<rewrite-real-path>rewrites getRealPath aliasing
securemarks the web-app as requiring a secure request
security-constraintconfigures the servlet security constraint
security-roleinformational: describes security roles used in the web-app
servletconfigures a servlet
servlet-mappingmaps a url to a servlet
servlet-regexpmaps a servlet using regular expressions
session-configconfigures the session
shutdown-wait-maxhow long to wait for all threads to exit on shutdown before forcing an exit
<startup-mode>how the web-app will be started on Resin startup
strict-mappingforces exact URL matches
taglibconfigures additional JSP taglibs used in the JSP
web-appconfigures a child web-app
web-app-deployconfigures a child webapps deployment directory
welcome-file-listconfigures the files to be used as index.html files
Personal tools