Figured it out - needed to tell the Action Servlet to explicitly defeat
caching.  In web.xml:

        <servlet>
                <servlet-name>action</servlet-name>
        
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
                <init-param>
                        <param-name>no-cache</param-name>
                        <param-value>true</param-value>
                </init-param>
        </servlet>

Now page flow changes dynamically as in the scenario below.

Thanks!
Michael

-----Original Message-----
From: Press, Michael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 3:27 PM
To: 'Struts Users Mailing List'
Subject: RE: How can I get Struts to re-read the config file?



Thanks for the info, but this doesn't seem to have the effect I want - to be
able to change the page flow, have Struts reload the config file, and have
the new flow take immediate effect.

For example, I have this action running:

                <action path="/home" forward="/jsp/home.jsp" />

Then I make this change to struts-config.xml:

                <action path="/home" forward="/jsp/home2.jsp" />
   
Then I call the /admin/reload action (it returns "OK").  When I invoke the
/home action, I still go to home.jsp, not home2.jsp as I'd expect.
(Bouncing Tomcat causes me to then go to home2.jsp).

Other suggestions?

Thanks,
Michael



-----Original Message-----
From: Robert Scaduto [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 3:05 PM
To: Struts Users Mailing List
Subject: RE: How can I get Struts to re-read the config file?


Struts includes a ReloadAction that will reload the struts-config.xml and
the ApplicationResources.

Just include...

<action path="/admin/reload" type="org.apache.struts.actions.ReloadAction"/>

in your struts config.   To re-load, navigate your browser to
<app-path>/admin/reload.do

That should do it.

-Rob


-----Original Message-----
From: Press, Michael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 2:33 PM
To: '[EMAIL PROTECTED]'
Subject: How can I get Struts to re-read the config file?


I would like for my webapp to be able to re-read struts-config.xml without
having to bounce the servlet container (Tomcat 4.0.1) or bounce/reload my
webapp.  Is this possible?

Thanks,
Michael

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


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

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

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

Reply via email to