• 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

How can I disable browsers back button using struts...

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I would like to know how can I disable browsers back button using struts...

One example is after logout GMAIL, then we cann't move to previous page
using browsers back button...

If anybody having the soln for this....

Please help me...

Sunny Suresh.
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, you should never try to disable the back buttons, because yo won't get the expected results. There are many variables and you can't take care of all, for example, the user can use mouse gestures to go back, or some keyboards have the back buttons, etc.

WHat you can do is to set a session variable and when he perform the action to go forward you set the variable to true, and check for that variable in your action class if he wants to go back.
 
reply
    Bookmark Topic Watch Topic
  • New Topic