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.
-- 
View this message in context: 
http://www.nabble.com/context-value-tp19593451p19593451.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to