...
- I am unable to compile my JSP!
- I can't get servlets to work under /servlet/*!
- Why is the invoker evil?
- How to I get Tomcat's version number?
- Tomcat eats 100% of the CPU!
- How do I get a customized error page?
- Should I use the LE version?
- How do I configure Tomcat to NOT to store the sessions during shutdown?
- How do I disable tag pooling?
- Is there a DTD for server.xml?
- How do I change the welcome file? ( I want to show index.jsp instead of index.html)
- How do I enable/disable directory listings?
- How do I use symbolic links with jars?
- How do I change the name of the file in the download Save-As dialog from a servlet? (or jsp)
- Is tag pooling broken? It doesn't call release!
- How do I disable tag pooling?
- Why do I get java.lang.IllegalStateException ?
- How do I make a scheduled event on Tomcat?
- What is Element "web-app" does not allow "servlet" here?
- How do I open a file for reading in my webapp?
- Can I run tomcat with the JRE, or do I need the full JDK?
- Is tomcat an EJB server? Can I use EJBs with tomcat?
- Can I access Tomcat's JNDI provider from outside tomcat?
- Who uses tomcat in production?
- I'm getting java.lang.ThreadDeath exceptions when reloading my webapp.
- Help! Even though I run shutdown.sh (or shutdown.bat), Tomcat does not stop!
- How do I debug JSP errors in the Admin web application?
- What order do webapps start (or How can I change startup order)?
- What's the different between a Valve and Filter?
...
Anchor | ||||
---|---|---|---|---|
|
No! Nor can one accurately exist. Here's why
Anchor | ||||
---|---|---|---|---|
|
To disable tag pooling: See $TOMCAT_HOME/conf/web.xml --> enablePooling=false for the jsp servlet declaration.
Note: This option, as well as most other configuration options of JspServlet, affects code generation and compilation of JSP pages. It will not alter the behavior of JSPs that have already been compiled.
...
change the welcome file? ( I want to show index.jsp instead of index.html)
This is done in web.xml by changing welcome-files-list. More detail.
Anchor | ||||
---|---|---|---|---|
|
To make a global change, this is done in TOMCAT_HOME/conf/web.xml by changing the listings property for the default servlet.
If you want to enable it for an individual webapp, then you need to add something similar to the following to your web.xml file (for your individual app):
No Format |
---|
<servlet>
<servlet-name>listing</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
|
No! Nor can one accurately exist. Here's why
...
This is done in web.xml by changing welcome-files-list. More detail.
...
To make a global change, this is done in TOMCAT_HOME/conf/web.xml by changing the listings property for the default servlet.
If you want to enable it for an individual webapp, then you need to add something similar to the following to your web.xml file (for your individual app):
No Format |
---|
<servlet> <servlet<param-name>listing<name>listings</servletparam-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <param-value>true</param-value> <init</init-param> <load-on-startup>1</load-on-startup> <param-name>debug</param-name></servlet> <servlet-mapping> <param<servlet-value>0<name>listing</paramservlet-value>name> </init-param><url-pattern>/</url-pattern> <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>listing</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> |
...
You'll need to tweak with server.xml and do this. (Don't worry - its really easy!)
...
</servlet-mapping>
|
Anchor | ||||
---|---|---|---|---|
|
You'll need to tweak with server.xml and do this. (Don't worry - its really easy!) Update: you should be worried – this feature has its drawbacks.
Anchor | ||||
---|---|---|---|---|
|
Use the Content-Disposition header.
Anchor | ||||
---|---|---|---|---|
|
It is not broken, your tag probably is. Many bug reports have been filed about this. Bug 16001 has all the gory details. There is also a nice description of the life cycle.
Note, that this issue does not affect the SimpleTag
tags and tag files of JSP 2.0 and later specifications, because those do not use tag pooling.
Anchor | ||||
---|---|---|---|---|
|
To disable tag pooling: See $TOMCAT_HOME/conf/web.xml --> enablePooling=false for the jsp servlet declaration.
Note: This option, as well as most other configuration options of JspServlet, affects code generation and compilation of JSP pages. It will not alter the behavior of JSPs that have already been compiled
Use the Content-Disposition header.
Anchor
Anchor | ||||
---|---|---|---|---|
|
java.lang.IllegalStateException
?...