The contexts of web applications for Tomcat are specified by the
<Context> element in server.xml
The <Context> element may have the following attributes:
- path
- The context path of the web application.
- The prefix of the request URI for the web application.
- This attribute is required.
- Must start with '/ ' character
- docBase
- The document root directory of the web application.
- This attribute is required.
- Can use relative or absolute path.
- MyApps - relative to "tomcat_home"
- /home/mwright/MyApp - absolute path on Unix
- C:\MyApp - absolute path on Windows --
On a Windows platform, the drive letter and a colon
(e. g. C: ) is required when specifying an absolute path.
- reloadable
- If true, instruct Tomcat to reload servlets whenever
they are updated.
- When developing and debugging a server, it is very
convenient to haveTomcat reload it upon change, this
lets you fix bugs and have Tomcat test the new code
without the need to shutdown and restart.
- Default value: false
- while this feature is very useful during development,
it requires overhead to do the checking. This capability
should generally not be used in deployed production
applications.
- debug
- debug level used for logging debug messages.
- from 0 to 9
- Default value: 0


