This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Reloading of a JSP" Watch "Reloading of a JSP" New topic
Author

Reloading of a JSP

Deepika Pereira
Greenhorn

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

<html>

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

</html>

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.
i.e.
Is there an option for autoreload of a jsp?

Thanks
Prasad Darsi
Greenhorn

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
Greenhorn

Joined: Apr 10, 2006
Posts: 4
Try this

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

Thanks,
Kalpesh
Kalpesh Patel
Greenhorn

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

Thanks,
Kalpesh
 
 
subject: Reloading of a JSP