struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Asim Ghosh <asimghos...@yahoo.co.uk>
Subject RE: how do i get the reference of ServletContext in Action Class
Date Thu, 24 Jun 2004 08:44:38 GMT
Yes, the solution was same.
 
There is one method inside the Action class i.e getServlet which returns the associated ActionServlet.
Once u have the ref. of this class u can call getServletConfig or getServletContext method.
 
asim

Jonathan Roberts <j_droberts@yahoo.co.uk> wrote:
>Thanx but i already solved it. 
>thanks again.

>asim

Hi Asim,

Was your solution the same?
It's always good to know what the solutions are to these problems for people searching through
the achives, for the next person who has trhe same issue

Cheers

Jonathan



Asim Ghosh wrote:
Thanx but i already solved it. 
thanks again.

asim

Alex Epelde wrote:
Sorry, you should get a reference to the servlet calling your action's
getServlet() method. And then use the getServletConfig() or
getServletContext() methods. There is no getServletContext() method in
the Action class.

-----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



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

---------------------------------
ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself 
		
---------------------------------
 ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself 
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message