Title: RE: Servlet Chaining...

I think HttpServletRequest inherits getRequestDispatcher(..) from ServletRequest class and does implement it. You can also get the RequestDispatcher object from ServletContext

===
Gary Grewal


-----Original Message-----
From: Gael Oberson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: RE: Servlet Chaining...


No, it doesn't work, because the HttpServletRequest class used in
HttpServlet doesn't implement the getRequestDispatcher method...

But it we can make your idea work, I don't understand how my XML file is
sent to the cocoon servlet... My XML file is printed do the response
(out.print(String);), and with the forward() method, the XML data is not
sent.. How does it work??



-----Message d'origine-----
De : Scott Walter [mailto:[EMAIL PROTECTED]]
Envoye : mercredi, 4. avril 2001 19:33
A : [EMAIL PROTECTED]
Objet : Re: Servlet Chaining...


Could you use a request dispatcher to forward the
request to the second servlet?

>From the first servlet's request object you could code
this:

RequestDispatcher rd = req.getRequestDispatcher("path
to second servlet");

rd.forward();


--- Gakl_Oberson <[EMAIL PROTECTED]> wrote:
>
>
> Hello
>
> I try to use Servlet Chaining with Tomcat.
> Can I do that with a tag in the web.xml file (with
> <servlet-mapping> for
> example), or must I modify my Request parameters??
> does anyone know how to
> do that???
>
> I have a Servlet that generates an complete and
> valid XML file from a
> database, and this file must be processed by the
> Cocoon servlet and then be
> returned to the client. That's it. Can anyone help
> me please???
>
> Thanks.
>
>
>
>
>
> ***********************************************
>   Gakl Oberson
>   Computer scientist
>   Student in Computer Science Engineering (HES)
>
>   Switzerland
>   [EMAIL PROTECTED]
>   [EMAIL PROTECTED]
> ***********************************************
>


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

Reply via email to