On Fri, 17 Jan 2003, Suresh Addagalla wrote:
> Date: Fri, 17 Jan 2003 19:29:45 +0530
> From: Suresh Addagalla <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Cc: 'Craig R. McClanahan' <[EMAIL PROTECTED]>
> Subject: RE: Application scope variables
>
> Hi,
>
> Thanks for the suggestion. Can someone outline the procedure for storing
> ServletContext attributes through a strust plug-in? I really couldn't
> find much help on the web to start working on the plug-in related
> things.
>
public class MyPlugIn implements PlugIn {
public void init(ActionServlet servlet, ModuleConfig config)
throws ServletException {
servlet.getServletContext().setAttribute
("foo", "This is the value for servlet context attribute 'foo'");
}
public void destroy() { }
}
> Thanks,
> Suresh
>
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>