The purpose of requestDispatcher is to make another servlet/JSP to handle
your request. If you don't want the calling resource to process the request
, then you can use the response.sendRedirect(). It'll show the URL in the
address bar of the browser.

Hope this helps you.

Sateesh

> ----------
> From:         Kok Leong Ng[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Monday, August 21, 2000 3:59 PM
> To:   [EMAIL PROTECTED]
> Subject:      URL Address Display on the browser
>
> Hi,
>
> I have tried to return a webpage to the browser using
> both RequestDispatcher.foward() and
> HttpServletResponse.sendRedirect(). For both methods,
> I can successfully display the desired page on the
> browser, however the URL display on the Address panel
> of IE (or Location for Netscape) is not the one for
> the desired page been displayed. May I know what
> should I do in order to get the correct URL display on
> the browser?
>
> Thanx in advance.
>
> Best Regards
>
> David
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://messenger.yahoo.com.sg
>
> __________________________________________________________________________
> _
> 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