If you use Eclipse and WTP (ie, Servers view), a redeploy is not
required when changing JSP files.

Anothed option is to use jetty, if you use maven.

Alvaro.

On 8/27/07, hezjing <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a index.html that will redirect to WelcomeAction,
>
> ===== index.html =====
> <html>
> <head>
> <META HTTP-EQUIV="Refresh" CONTENT="0;URL=welcome.action">
> </head>
> <body>
> <p>Loading ...</p>
> </body>
> </html>
>
>
> WelcomeAction does nothing but simply returns success from execute().
>
> ===== WelcomeAction.java =====
> public class WelcomeAction extends ActionSupport {
>     public String execute() throws Exception {
>         return SUCCESS;
>     }
> }
>
>
> Struts will then forward the result to index.jsp,
>
> ===== struts.xml =====
> <struts>
>   <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">
>       <result>index.jsp</result>
>     </action>
>   </package>
> </struts>
>
> ===== index.jsp =====
> <html>
> <head>
> <title>TITLE</title>
> </head>
> <body>
> </body>
> </html>
>
>
> All of this is working fine, I entered
> http://localhost:8080/myapp/index.html and the IE6 displayed the
> index.jsp.
>
> 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
> service.
>
> 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
> configuration.
>
>
> --
>
> Hez
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to