File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
does URL content change when I use .forward()
Joined: Nov 27, 2001
Jan 25, 2002 16:08:00
I found that when I do a forward(req, res) from a
to a jsp. The content of the page changes to the jsp's content, but the URL stays the same as servlet's URL. Is it suppose to be the case ?
Roy Ben Ami
Joined: Jan 13, 2002
Jan 25, 2002 16:19:00
yes. it is
if u want to send the client browser to a new url completly use the response.sendRedirect(..)
I agree. Here's the link:
subject: does URL content change when I use .forward()
"jsp:include page=..." and refresh
does URL change when using "forward(req, res)" ?
help on forward on actionForm's validation fail
Redirect http to https
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014