You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by e-denton Java Programmer <ja...@e-denton.com> on 2004/10/17 20:00:35 UTC
Access context from Action?
Hi,
I want to set an application attribute from an Action.
How do I get the ServletContext from an Action?
Thx.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Access context from Action?
Posted by e-denton Java Programmer <ja...@e-denton.com>.
Nevermind...
servlet.getServletContext()
getServlet().getServletContext()
request.getSession().getServletContext()
----- Original Message -----
From: "e-denton Java Programmer" <ja...@e-denton.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Sunday, October 17, 2004 1:00 PM
Subject: Access context from Action?
> Hi,
>
> I want to set an application attribute from an Action.
>
> How do I get the ServletContext from an Action?
>
> Thx.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org