Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [s2] getting servletContext in actions

Nagraj Rao

2007-01-31

Replies:

were u actually able to get the servletContext Object thru
servletContextAware?? I'd tried it but couldn't get it :(
do we need to do any additional stuff for that??

----- Original Message -----
From: "Jeffrey Hau" <jh398@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Wednesday, January 31, 2007 4:55 PM
Subject: [s2] getting servletContext in actions


> Hi,
> If i need to get a servletContext object in my action class, is
> implementing the ServletContextAware interface the standard way of doing
> this? Is there any other alternatives?
>
> thanks,
>
> Jeff
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


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

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