yes, one is send redirect is actually two requests to display one
page...another, as a consequence, is you can't set/get request scope
objects.

--
Tinou Bao
www.tinou.com


----- Original Message -----
From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 8:51 AM
Subject: Re: [SERVLET-INTEREST] Servlet to Servlet communucation


> Hi All,
>         I have small doubt...
>         what is the difference between RequestDispatcher way and
> sendRedirect() way in forwarding request from one servlet to another
> servlet?
> I know one diff. that sendRedirect() makes fresh request to resource where
> we are forwarding...
> whether it is not the case with requestDispatcher...
> Are there any docs about this?
>
> -raj-
>
> -----Original Message-----
> From: Arnab Nandi [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 1:29 PM
> To: [EMAIL PROTECTED]
> Subject: Servlet to Servlet communucation
>
>
> Hi,
>
> In our application we need to forward the request from one servlet to
> another.
> When we use this
> getServletConfig().getServletContext().getRequestDispatcher("/servlet/Se
> archServlet").forward(request, response);
>
> It works fine in VAJ test environment but fails on Tomcat/Apache Server.
>
> Any pointers in this regards will be of great help
>
> Regards
> Arnab
>
>
___________________________________________________________________________
> 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
>

___________________________________________________________________________
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

Reply via email to