• Post Reply Bookmark Topic Watch Topic
  • New Topic

Preventing bookmarking of pages  RSS feed

 
Cindy Jones
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a struts based application. There are some actions defined in my strus-config.xml - these are visible to the user. How do I prevent the user from bookmarking the url. When the user tries to access these links directly I want to display a different page which tells hi that it is not possible. Is there any way I can do this.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36455
460
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cindy,
You can set a value in the session on the page the user comes from. Struts calls this a token. On the pages that you don't want bookmarked, check for that value.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think A filter here makes sense.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!