This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Redirect to login page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Redirect to login page" Watch "Redirect to login page" New topic
Author

Redirect to login page

RaviSingh Kumar
Ranch Hand

Joined: Sep 04, 2007
Posts: 52
Hi,

I am new to struts. Just want to redirect users to login page when user click logout or session time expires.

Currently i am checking the session in every jsp page . But is to difficult to maintain it. Also same code get repeated over several jsp page.

Can it be possible with some centralized manner.

Please help in this regard. Thanks in Advance
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Which version of Struts?

Use a filter, a custom request processor, a base action class, ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Redirect to login page
 
Similar Threads
Session Time Out
redirecting useing session in jsp
redirecting page
on session expire in iframe - open login page in parent window
Securing an application