struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John C Alex <ashok_l...@hotmail.com>
Subject Action Form with Session Scope
Date Fri, 16 Nov 2007 21:20:26 GMT

Hi All, I need some clarification ( rather suggestions ) on the below.

 <action-mappings >
    <action
      attribute="firstActionForm"
      input="first.jsp"
      name="firstActionForm"
      path="/firstAction"
      scope="request"
      type="com.deo.struts.action.FirstAction">
      <forward name="success" path="/second.jsp" />
    </action>
    <action
      attribute="secondActionForm"
      input="second.jsp"
      name="secondActionForm"
      path="/secondAction"
      scope="session"
      type="com.deo.struts.action.SecondAction">
      <forward name="success" path="/second.jsp" />
    </action>

Based on the mapping, from first jsp I can go to second jsp. Now in the
first Action class can I set some values in secondActionForm so that these
values can be available to second.jsp as the scope is set to session ?

Please let me know on the above.

Thanks
John
-- 
View this message in context: http://www.nabble.com/Action-Form-with-Session-Scope-tf4823931.html#a13801674
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message