• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

url related

 
Anu Biswas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

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!
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
biny panackal
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65129
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by biny panackal:
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.

Forwarding only works within a single request. It cannot be used in place of links to traverse from page to page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic