Send Redirect makes the CLIENT perform a redirect to the
server so you have the way server->client->server, whereas forwarding remains
on the server.

Dos: Javas Servlet Spec


"Rajehswar V. Rao" wrote:

> 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

--

*** Bitte beachten Sie unsere neuen Mail- und Internet-Adressen ***
*** Please notice the new mail- and internet-address            ***

--

___________________________________________________________________________
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