You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Fabien Modoux <fa...@voicemate.com> on 2001/04/25 02:09:52 UTC
Problem with forward between actions
Hello,
I am using struts-1.0-b1. I have an action (action1)
which forwards the request to another action (action2),
which in turn forward a jsp (init.jsp) for final display:
<action path="/actions/action1"
type="Action1">
<forward name="do_action2"
path="/actions/action2?action=init"/>
<forward name="error" path="/error.jsp"/>
</action>
<action path="/actions/action2"
type="Action2">
<forward name="greeting"
path="/actions/greeting.jsp"/>
<!-- other forwards -->
</action>
action1 is storing some objects in the session, which
are used by action2, and then by the jsp. My problem
is that the jsp gets a new session... The two actions
share the same session id, but then when the request
arrives at the jsp, the session id is different and a
new instance of my objects are created.
Does anyone know why this is happening and what I am
doing wrong?
Thanks you for your help,
-Fabien Modoux
---------------------------------------------
Fabien Modoux,
Voicemate - http://www.voicemate.com