On Tue, 16 Sep 2003, Andy Kriger wrote:

> Date: Tue, 16 Sep 2003 10:04:06 -0400
> From: Andy Kriger <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: getServlet?
>
> The ServletContext.getServlet() method has been deprecated.

Yes.

> Is it possible
> to get a Servlet (or the ServletConfig, which is what I'm really after) in a
> Struts Action?

You can get the ServletConfig for the controller servlet itself by calling
getServlet().getServletConfig().  You cannot get the ServletConfig for any
other servlet.  If that other servlet needs to share info, have it put
things into servlet context attributes.

>
> thx
> andy

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to