aspose file tools
The moose likes Struts and the fly likes I need help on developing login/logout application using struts2 frame work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "I need help on developing login/logout application using struts2 frame work" Watch "I need help on developing login/logout application using struts2 frame work" New topic
Author

I need help on developing login/logout application using struts2 frame work

nalamati satyanarayana
Ranch Hand

Joined: Dec 16, 2005
Posts: 39
Hi,

I developed login/logoout application using struts2 frame work like

first it will display login page once you enter user name and password it will display user information screnn , There if you click on logout it will redirect to login jsp.
after that if i click on back button on browser it is redirecting to user information screen. but i donot want to go to user information screen.
Can you please help me out to solve these problem .
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Disable caching.
Pawan Kalyan
Ranch Hand

Joined: Jun 18, 2009
Posts: 34
Hey i too have the same problem with struts 2.

Though i am clearing the cache on each jsp like :

response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1);

But i am able to go back to the page even after invalidating the session.

Can someone help me how to do this.

Thanks,
Pawan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I need help on developing login/logout application using struts2 frame work