This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Target login page after timeout

 
Drew Lane
Ranch Hand
Posts: 296
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using form based authentication like so:

<form-login-config>
<form-login-page>/index.jsp</form-login-page>
<form-error-page>/index.jsp</form-error-page>
</form-login-config>

I've also go my webapp in an HTML frameset.

The problem I'm having is occurs when I have a session timeout; I need the login page to target the top level frameset otherwise I get the login page in each frame of the frameset. Yikes!

Anyone know a way to do this?

I doubt this is going to work:
<form-login-page>/index.jsp target=_top</form-login-page>

Thanks,

Drew
[ June 10, 2005: Message edited by: Drew Lane ]
 
Raj CK
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
May be couple of suggestions(?)

1. Create servlet filter and configured such that all the request go thru it, if session is new then redirect to parent Frame jsp, which contains login page.

2. Try to use tiles layouts (http://struts.apache.org/userGuide/dev_tiles.html). It is very flexible and amazing. I strognly suggest you to look into this. Frames are known for problems when you start adding server side code.

3. You can create 'public' directory where you can keep Frame jsp,which contains login page.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic