I need to hide the name of the jsp file being accessed, from the URL being displayed in the browser. I.e. if the initial page is being displayed as http://xyz.com/controller, and then I click some link or button and a new page say abc.jsp is being fetched, then I donot want http://xyz.com/abc.jsp to be displayed. Instead I need to continue showing http://xyz.com/controller, and this needs to be maintained everywhere.
Any help will be appreciated...Thanks in advance!
Joined: Nov 06, 2000
You can route the display of the jsp through the controller then, by having the controller handle the request and forward to the jsp. The URL will stay the same. Or you can also map that jsp to whatever URL you want via the deployment descriptor.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: Apr 12, 2007
if you need only to display the firt URL in the site. then you have to use <jsp:forward to go from one page to other. If you are using this the url keeps same and page changes