Your AJAX request to load the tab is getting redirected to the login content
instead of the tab content due to the session time out and the spring
security authentication.
Therefore your tab is displaying the login screen.
You could add a Javascript component to "timeout" and either notify or
auto-redirect the user
to the logout screen (or login screen). Various banking institutions use
this solution.
Another possible solution is to have your AJAX tab widget "recognize" the
invalid content and force a
redirect to the login/logout screen.
/robert
----- Original Message -----
From: "RogerV" <roger.var...@googlemail.com>
To: <user@struts.apache.org>
Sent: Tuesday, May 25, 2010 6:06 AM
Subject: Struts 2, Jquery and Spring Security 3.0
Has anyone come across this before?
Scenario: After logging in, user runs Struts 2 action that displays a .jsp
page that uses Struts2-Jquery tags to create a tabbed display that make
Ajax
calls to access their content from other struts actions. Walk away and let
the session expire. Clicking on one of the tabs invokes the login page
from
Spring security as it should, except the login page appears as the content
of the selected tab.
How(Can) I configure Spring security so that the login page always appears
as a display in it's own right. If the login program was a Struts Action
I'd
do this as a "redirectAction", but I've no idea how to acheive this in
Spring/Struts intergration.
Regards
--
View this message in context:
http://old.nabble.com/Struts-2%2C-Jquery-and-Spring-Security-3.0-tp28666543p28666543.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org