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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] Enviado el: jueves, 24 de junio de 2004 8:19 Para: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- 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