struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hezjing <>
Subject [S2] Refresh JSP in Tomcat 5.5
Date Mon, 27 Aug 2007 08:19:08 GMT

I have a index.html that will redirect to WelcomeAction,

===== index.html =====
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=welcome.action">
<p>Loading ...</p>

WelcomeAction does nothing but simply returns success from execute().

===== =====
public class WelcomeAction extends ActionSupport {
    public String execute() throws Exception {
        return SUCCESS;

Struts will then forward the result to index.jsp,

===== struts.xml =====
  <constant name="struts.objectFactory" value="spring" />
  <constant name="struts.devMode" value="true" />
  <package name="example" extends="struts-default">
    <action name="welcome" class="welcomeAction" method="execute">

===== index.jsp =====

All of this is working fine, I entered
http://localhost:8080/myapp/index.html and the IE6 displayed the

However, it will not display the latest JSP after I modified the
content (e.g. the title) of the index.jsp until I restart Tomcat

Do you know how to reload the JSP without restarting the Tomcat?

Note: this seems to be not a Tomcat problem because it was able to
display the latest JSP when I took out all the Struts 2's action and



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message