• 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

clearing address bar

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a JSP page that intially displays in the address bar the JSP file name, and parameters.
After displaying the page I want to be able to hide the paramaeteres or clear the address bar.
Can I do this in JSP, or javascript?
I'm trying to prevent users from sending the URL by email to others.
 
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
JSP, being a server-side technology, cannot affect the browser controls.
I do not believe that there is a Javascript solution (at least not a standard one), but I'll send this off to the HTML/Javascript forum in case someone knows of a trick that can help you.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can not hide anything in the address bar.
There is a way to use frames to do it, but you would still have that initial link with the parameters in it. Any smart person would know how to get that link out of the frames anyway.
If you really want security, I would rethink it on the server side and avoid using client side technology.
Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic