Jay Kandy
Posts: 77
Nickname: jay
Registered: Mar, 2002
|
|
Re: Server Side Forward Object
|
Posted: Aug 1, 2002 9:53 PM
|
|
> These are both serverside redirects, as far as the > client is concerned they are still the same url, I > Think. If you do a cleint side redirect you will get
Thats not true. Like I said, a RequestDispatcher uses the same request and response objects - including the query string parameters to the next page. This means, the client doesnt get any information from the server. No headers are set. So the client doesnt have any idea about the redirect.
On the other hand, a response.sendRedirect() sets new request and response object. This is the line in the specs: (under title 6.3 Convenience Methods )
The sendRedirect method will set the appropriate headers and content body to redirect the client to a different URL.
A 302 header is set, the resulting page has its own URL.
> the url location in the browser, this can be done > with the jsp by using the document.location ? .
To me, that sounds more like JavaScript not JSP.
> > HTH
-Jay
|
|