RE: Session Expired Interceptor

2013-01-13 Thread BetBasoo, Peter
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

Re: Session Expired Interceptor

2013-01-13 Thread jlmagc
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

RE: Session Expired Interceptor

2013-01-13 Thread BetBasoo, Peter
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

RE: Session Expired Interceptor

2013-01-13 Thread Dave Newton
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

RE: Session Expired Interceptor

2013-01-13 Thread BetBasoo, Peter
-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

Re: Session Expired Interceptor

2013-01-12 Thread Chris Pratt
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

RE: Session Expired Interceptor

2013-01-12 Thread BetBasoo, Peter
[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

Re: Session Expired Interceptor

2013-01-12 Thread Chris Pratt
gt; > > name="loginRequired">loginRequired > > > > /expiredSession.jsp > > > class="mesirow.action.AccountActions" method="getClientA

RE: Session Expired Interceptor

2013-01-12 Thread BetBasoo, Peter
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

Re: Session Expired Interceptor

2013-01-12 Thread Chris Pratt
-- > 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 > >

RE: Session Expired Interceptor

2013-01-12 Thread BetBasoo, Peter
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

2013-01-12 Thread Mahendru, Ajay
: 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

Re: Session Expired Interceptor

2013-01-11 Thread Dave Newton
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

Session Expired Interceptor

2013-01-11 Thread BetBasoo, Peter
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

Re: session expired

2007-10-09 Thread stanlick
) 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

Re: session expired

2007-10-09 Thread meissa . sakho
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

Re: session expired

2007-10-09 Thread meissa . sakho
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:

Re: session expired

2007-10-08 Thread Wes Wannemacher
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

session expired

2007-10-08 Thread meissa . sakho
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()

Re: Session expired and Multi-Entity Struts application

2006-02-01 Thread Michael Jouravlev
> ..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 >

Session expired and Multi-Entity Struts application

2006-02-01 Thread Angel Navarro
. 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

Re: test session expired HELP!

2005-05-15 Thread Robert Taylor
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

test session expired HELP!

2005-05-13 Thread Lucas Bern
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