Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

context value

rageice

2008-09-21

Replies: Find Java Web Hosting

Author LoginPost Reply

Hello, sorry for my bad english.

Does someone knows why a context value could be lost between two struts
actions?


For an example,
In SecondAction:
req.getSession(true).getServletContext().getAttribute("key")) returns
"value",
In ThirdAction:
req.getSession(true).getServletContext().getAttribute("key")) returns null

with the following struts actions:

    <action
       path="/secondAction"
       name="secondAction"
       type="appli.struts.actions.SecondAction"
    >
       <forward name="valid" path="/thirdAction.do"/>
       <forward name="invalid" path="/error.jsp" />
    </action>
   
    <action
       path="/thirdAction"
       name="thirdAction"
       type="appli.struts.actions.ThirdAction"
    >
       <forward name="valid" path="/result2.jsp" />
       <forward name="invalid" path="/error.jsp" />
    </action>



I haven't this problem when I do this at home, with a simple configuration.
But is there something that could explain that I have this problem at work
in your advice? Configuration parameters, the scope of the context, etc... ?


Thank you in advance.
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.