Action class is derived from Object class. Action class doesn't have any getServletConfing or getServletContext(). ActionServlet has those methods. But i need the ref. of ServletConfig or ServletContext in Action class.
Alex Epelde <[EMAIL PROTECTED]> wrote: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:[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