Hi,
You can use now ServletContext's setAttribute() and getAttribute()
to register servlets themselves as ServletContext's attributes.
Cezar
On Thu, 27 May 1999, Daniel Liu wrote:
> Hi All:
> I am running an example servlet written by jsdk2.0 under jsdk2.1.
> Because some methods have been deprecated in 2.1 with no
> replacement, how can I modify the code so that the example
> still works.
>
> For example, in 2.0, there is the method
>
> public Servlet getServlet(java.lang.String name)
>
> in Interface ServletContext,
>
> But in 2.1, it always return null.
>
> Is there any solution for this?
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html