This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Redirect logon page in frames when session timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Redirect logon page in frames when session timeout" Watch "Redirect logon page in frames when session timeout" New topic
Author

Redirect logon page in frames when session timeout

ning zhu
Greenhorn

Joined: Nov 21, 2009
Posts: 3
hi, there

i have tried to redirect logon page after session timeout by adding

<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/sessionExpired.jsf</location>
</error-page>

in web.xml.

It works. BUT since i use the tag <iframe> in index page, so the relogon page always appears in the "sub-frame". I wonder how to make logon page show in the top frame. Any suggestion will be appreciated.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Redirect logon page in frames when session timeout
 
Similar Threads
doubt in session
JSF : redirect errors to error page
Not Redirecting to error page
Overriding <exception-type> tag in web.xml
Changing the target attribute before making a forward