Total Pageviews

2006/05/24

[Tomcat] Disable Tomcat Cache

Scenario
As I author jsp files, no matter how I refresh the browser, it always show old data. It's inconvenient for us to do debug

Solution
search this keyword org.apache.jasper.servlet.JspServlet in the web.xml(E:\ptc\tomcat5\conf)

<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>


But remember to change the value of development to false for the sake of performance.

2 comments:

Unknown said...

I looked at my web.xml in Eclipse... nothing found. Can you help?

Albert Kuo said...

you should edit tomcat's web.xml, it located in tomcat/conf