Hi Daniel, If your struts plug-in class implements org.apache.struts.action.PlugIn interface then you can get the ServletContext in the init method like this...
public void init (ActionServlet servlet, ModuleConfig moduleconfig) { ServletContext servletContext = servlet.getServletContext(); // After this continue with your functionality for setting the attributes in the servlet context. } Have a Good Day!!! Best Regards Pal -----Original Message----- From: Daniel Las [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 10:46 PM To: Struts Users Mailing List Subject: request and context data Hi How can I access context path from Struts Plugin ? How can I access request object from HttpSessionListener or ServletContextListener? I'd like to set some session or servlets attributes in plugins or listeners, eg.: - current locale in session attributes - context path in servlet attributes Regards -- Daniel Łaś <[EMAIL PROTECTED]> e-direct Polska sp. z o.o. ul. 1-go Maja 9 45-068 Opole tel. +48 77 44 17 868 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]