"Ryan, Jeff J (Comm Lines, IT)" wrote:
> Hi,
>
> Is there a way to find an instance of an HttpServlet from within any Java
> Class? I don't want to forward(), include() or sendRedirect(), but to
> actually get a handle on an instance of a servlet similar to what you can do
> with an EJB.
>
No, there is no mechanism within the servlet API to do this. You should use
non-servlet classes (perhaps accessed as servlet context attributes) or static
variables to provide shared access to methods or data you want to share.
>
> Thanks, Jeff
>
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets