access it with straight web.xml context-param
<context-param>
<param-name>qualifying_requirements</param-name>
<param-value>poor_english</param-value>
</context-param>
//you can then access it via
getServletContext().getInitParameter("qualifying_requirements");Is there
something specific you needed?
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a confidential nature and Sender does not
endorse distribution to any party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission.
> Date: Sun, 21 Sep 2008 04:07:53 -0700
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: context value
>
>
> 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]
>
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/