This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes redirecting to a new page when session expires Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "redirecting to a new page when session expires" Watch "redirecting to a new page when session expires" New topic
Author

redirecting to a new page when session expires

Pavitra Acharya
Greenhorn

Joined: May 10, 2006
Posts: 2
Hello All
I am having a problem while redirecting in struts .When my session expires i redirect to the login page.i.e
if(session == null || session.getAttribute("userId") == null){
return mapping.findForward("login");}
and in my struts_config.xml,i have included
<forward name="login" path="login.jsp" redirect="true"/>
But the problem is when the session expires,the login page is being displayed within the page as a inner frame but not as a fresh new page.Can please suggest a solution to this?
Thanks
Pavitra
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: redirecting to a new page when session expires
 
Similar Threads
Redirect user to login page after session expires
redirecting page
Session time out error
redirecting to a new page when session expires
Basic Session Validation