• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

url related

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic