That is why I wound up doing.
-Original Message-
From: jlm...@gmail.com [mailto:jlm...@gmail.com]
Sent: Sunday, January 13, 2013 9:05 PM
To: Struts Users Mailing List
Subject: Re: Session Expired Interceptor
I also use a session expired interceptor. It detectes if the call is a standard
I also use a session expired interceptor. It detectes if the call is a standard
navigation, or if it is a ajax call(looking for a header in the request). If it
is a navigation, it redirects the user to sessionLogin. if it is a ajax call,
it returns a custom http error code, which is deteced by
Is there any way to cancel the ajax call and redirect to the expiredSession.jsp?
-Original Message-
From: Dave Newton [mailto:davelnew...@gmail.com]
Sent: Sunday, January 13, 2013 1:25 PM
To: Struts Users Mailing List
Subject: RE: Session Expired Interceptor
It's an ajax call-the re
gt; -Original Message-
> From: Chris Pratt [mailto:thechrispr...@gmail.com]
> Sent: Saturday, January 12, 2013 11:27 PM
> To: Struts Users Mailing List
> Subject: Re: Session Expired Interceptor
>
> Well, the action handler for step 6 hasn't been defined in
-Original Message-
From: Chris Pratt [mailto:thechrispr...@gmail.com]
Sent: Saturday, January 12, 2013 11:27 PM
To: Struts Users Mailing List
Subject: Re: Session Expired Interceptor
Well, the action handler for step 6 hasn't been defined in struts.xml, so it
will use the struts default
oginRequired because I thought that it would never get to
> that point because of the interceptor. Is this a valid assumption?
>
> -Original Message-
> From: Chris Pratt [mailto:thechrispr...@gmail.com]
> Sent: Saturday, January 12, 2013 4:19 PM
> To: Struts Users Mailing
[mailto:thechrispr...@gmail.com]
Sent: Saturday, January 12, 2013 4:19 PM
To: Struts Users Mailing List
Subject: Re: Session Expired Interceptor
That looks right to me (except for the fact that if the user logs in there are
no results for getClientAccounts).
1. What should be happening is
gt;
>
> name="loginRequired">loginRequired
>
>
>
> /expiredSession.jsp
>
>
> class="mesirow.action.AccountActions" method="getClientA
ary 12, 2013 3:11 PM
To: Struts Users Mailing List
Subject: Re: Session Expired Interceptor
So you now have this in your struts.xml?
loginRequired
(*Chris*)
On Sat, Jan 12, 2013 at 12:06 PM, BetBasoo, Peter <
pbetba...@mesirowfinancial.com> wrote:
> I did put redirectAction a
--
> From: Mahendru, Ajay [mailto:ajay.mahen...@dish.com]
> Sent: Friday, January 11, 2013 9:27 PM
> To: Struts Users Mailing List
> Subject: RE: Session Expired Interceptor
>
> You are missing the redirectAction. Use something like this:
>
> programming
>
>
turns the loginRequired result.
Any ideas?
-Original Message-
From: Mahendru, Ajay [mailto:ajay.mahen...@dish.com]
Sent: Friday, January 11, 2013 9:27 PM
To: Struts Users Mailing List
Subject: RE: Session Expired Interceptor
You are missing the redirectAction. Use something like
: Re: Session Expired Interceptor
I'm actually surprised it's not erroring out since the global result should
be a redirectAction since you're not forwarding to a JSP.
Dave
(On mobile device, please forgive typos, bizarre autocompletes, and top-
quoting.)
On Jan 11, 2013 10:1
I'm actually surprised it's not erroring out since the global result should
be a redirectAction since you're not forwarding to a JSP.
Dave
(On mobile device, please forgive typos, bizarre autocompletes, and top-
quoting.)
On Jan 11, 2013 10:17 PM, "BetBasoo, Peter"
wrote:
> I have written a si
I have written a simple interceptor to check for an expired session. Here's the
code:
public class ExpiredSessionInterceptor extends AbstractInterceptor implements
Constants
{
private static final long serialVersionUID = 1L;
private String excludeActions = "";
public synchroni
) in
> struts2.
>
> thank in advance.
>
>
>
>
>
> "Wes Wannemacher" <[EMAIL PROTECTED]>
> 08/10/2007 18:45
> Veuillez répondre à
> "Struts Users Mailing List"
>
>
> A
> "Struts Users Mailing List"
> cc
I was wrong on my test.
It works.
Meissa
[EMAIL PROTECTED]
09/10/2007 09:41
Veuillez répondre à
"Struts Users Mailing List"
A
"Struts Users Mailing List"
cc
Objet
Re: session expired
I have used the piece of code and it works. I can acces the
HttpServletRequ
truts2.
How can we simply test if a session is not expired (or is valid) in
struts2.
thank in advance.
"Wes Wannemacher" <[EMAIL PROTECTED]>
08/10/2007 18:45
Veuillez répondre à
"Struts Users Mailing List"
A
"Struts Users Mailing List"
cc
Objet
Re:
You can grab the request just like they do in the ServletConfigInterceptor -
final Object action = invocation.getAction();
final ActionContext context = invocation.getInvocationContext();
HttpServletRequest request = (HttpServletRequest) context.get(HTTP_REQUEST);
On 10/8/07, [EMAIL P
I'd like to write an interceptor that will redirect
to a page when the session is expired.
I know that I can acces to the session in the interceptor like that.
public String intercept(ActionInvocation invocation) throws Exception
{
Map session = invocation.getInvocationContext()
> ..URL?Entity=1
> ...URL?Entity=2
> ..
>
> And when a User is login, this param is in session.
>
> My problem is that the user's session expired, and the user want to acces to
> web application, the application indicate to user that have no session, this
>
.
My problem is that the user's session expired, and the user want to acces to
web application, the application indicate to user that have no session, this
is ok, but the problem is the colors of error page is not correct. Why?
Because to rendering JSP in struts, get the param session
Lucas, this is such a basic question. Have you done any research on this
at all? Google ("Java session has expired" returned 139,000 hits.)
perhaps? Maybe search the archives? This isn't even a Struts question.
Not even specified as OT or Newbie.
In the future:
http://www.catb.org/~esr/faqs/sm
Hi guys!
can anybody tellme how to know if a session is espired???
thanks!
Lucas
Brian McGovern <[EMAIL PROTECTED]> escribió:
Thank you Mike. That was EXACTLY it. VERY appreciated. I was messing around all
morning with this.
-Original Message-
From: Mike Millson [mailto:[EMAIL PROTECTE
23 matches
Mail list logo