struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Epelde" <aepe...@entelibai.com>
Subject RE: how do i get the reference of ServletContext in Action Class
Date Thu, 24 Jun 2004 06:35:28 GMT
Action class has a getServletConfig method which returns a ServletConfig
object. You can get a reference to the ServletContext object throught
this object's getServletContext() method.

I also think you can directly call Action's getServletContext() (which
is inherited from GenericServlet) depending of your servlet api version.

-----Mensaje original-----
De: Asim Ghosh [mailto:asimghosh26@yahoo.co.uk] 
Enviado el: jueves, 24 de junio de 2004 8:19
Para: user@struts.apache.org
Asunto: how do i get the reference of ServletContext in Action Class


hello guys,
 
  can any one tell me that how do i get the reference of ServletContext
in Action Class.
 
asim

		
---------------------------------
 ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message