This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes Struts and the fly likes need some suggestion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "need some suggestion" Watch "need some suggestion" New topic

need some suggestion

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
i have a login page that takes up the whole screen space. on successful login I show a html page with frames.

RHS frame is links.jsp. LHS is a blank page. Whenever you click a link on links.jsp the corresponding page displays in the LHS frame.

Now when in my action classes i check for user in session...if his session expires..I redirect him to Login page. But I see that it displays the Login page inside the LHS frame exposing all the links on RHS frame...which the user is not supposed to see. Here is my forward...

forward name="showloginpage"

My Log out works great . It closes the page with frames and shows the Login Page in the whole screen. the "_top" does the magic here.

<html:link target="_top" page="/entry/">Log out</html:link><br>

How to solve this problem when I am doing this in the action class?
It is sorta covered in the JavaRanch Style Guide.
subject: need some suggestion