File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Reloading of a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Reloading of a JSP" Watch "Reloading of a JSP" New topic

Reloading of a JSP

Deepika Pereira

Joined: Mar 20, 2006
Posts: 25
I am making a request for dips.jsp
This file contains


<% out.print("Dips u made it. good"); %>
<strong> In JSP </strong>


Now when I change the code in out.print to something else
then unless i restart tomcat the changes are not reflected.
Is there a way to see the new output wihtout restarting tomcat.
Is there an option for autoreload of a jsp?

Prasad Darsi

Joined: Sep 26, 2004
Posts: 16
Which version of tomact you are using ?

If you are using Tomcat verison 5.5 it will display the changed content automatically without restarting.
Kalpesh Patel

Joined: Apr 10, 2006
Posts: 4
Try this

<Context path="/test" docBase="<<APP_DIR>>/test" debug="0" reloadable="true" crossContext="true" />

Kalpesh Patel

Joined: Apr 10, 2006
Posts: 4
Sorry, I forgot to mention that this is in $TOMCAT_HOME/conf/server.xml file.

I agree. Here's the link:
subject: Reloading of a JSP
It's not a secret anymore!