Tarun Sharma wrote:
> Hi All,
>
> Q. When we do a
> HttpServletRequest.sendRedirect(location)
> Does the control go back to the browser ie is it the browser that fires the
> request to the new location or is it done completely on the server side .
>
Control does go back to the browser. The sendRedirect() call returns an
HTTP status code (SC_MOVED_TEMPORARILY), along with the location you specify,
back to the browser. The browser sees this, and automatically issues a second
request to the new location.
If you want things to be done only on the server side (improved performance
due to avoiding the extra round trip), check out RequestDispatcher.forward().
>
> Thanx in advance.
> Tarun
>
Craig McClanahan
___________________________________________________________________________
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