Hi Nic
Thanks for the reply.
I took a look at the methods you suggested.
The documentation says this has been
deprecated because it is dangerous to access
Servlets which are in an unknown state.
This leads to the question - If I only have this
pre 2.1 method available to me should I use it?
Basically I am trying to do this ( without JSP ):
1. A request comes from client to my ControllerServlet
2. Controller requests an Object from a ServiceLayer
3. The returned Object is placed in the users session
Now here is the problem
4. I want to pass control to a 'ViewServlet' which will
accesses the Object from the session and formats a
page back to the client.
Thanks
Liam
On Wed, 2 Feb 2000 12:39:00 +0000, Nic Ferrier <[EMAIL PROTECTED]> wrote:
>>>> Liam Dens <[EMAIL PROTECTED]> 02-Feb-00 11:52:43 AM >>>
>
>>How do you pass the request and response objects to another Servlet
>>in pre 2.1 API implementations? What I need is to simulate
>RequestDispatcher
>>functionality as found in the 2.1 API.
>
>You can't quite do that...
>
>check out getServlet() in ServletContext. It was depreceated in 2.1
>(causing much argument) but was the way that one used to be able to
>call-off to other resources.
>
>eg:
> void doGet(req,resp)
> {
> Servlet
>c=getServletContext().getServlet("com.mypack.ThingServlet");
> c.service(req,resp);
> }
>
>or something like that.
>
>
>>Also where can I find a copy of the 2.0 spec?
>
>Tricky... Sun should really keep them available but it's not a major
>problem as the existing API still has all the calls of version 1.0.
>It's just that some are depreceated.
>
>
>Nic
___________________________________________________________________________
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