Hi peter
if you are forwarding using the request dispatcher, that means, the transfer of control from the servlet to the jsp is taking place on the server side. The client...i mean ....the browser will not come to know about this forward. And exactly for this reason, the ...the response committed by the jsp is rendered at the browser end but the url belongs to the calling servlet.
And as mentioned earlier in this
thread, by Bear, in an application, the user wouldn't be worried about, the response rendered and the url in the address bar.
However, if you want the user to know that the control was transferred from the servlet to jsp, then user
response.sendRedirect() method. Due to this, the serlet will send a temporary HTTP code, with the jsp url you have provided, back to the browser, the browser understands the code, that the call needs to be made for some other resource, in such a case, the browser sends another request to the new url it recieved....and that is the reason why now, the response from jsp will be rendered at browser end PLUS, the url changes in the browser's address bar.
But its upto you which method to use. Go through FAQ of javaranch, and you will get more information on this.
hope this thing helps you
Zomkar