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 t

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 results

RE: Session Expired Interceptor

2013-01-13 Thread Dave Newton
It's an ajax call-the results will be returned to the JavaScript that called it. You need to handle the redirect on the client side. Dave On Jan 13, 2013 2:21 PM, "BetBasoo, Peter" wrote: > Chris: > > The javascript is expecting the result in XML format, not a jsp page. > > Isn't the intercept

RE: Session Expired Interceptor

2013-01-13 Thread BetBasoo, Peter
Chris: The javascript is expecting the result in XML format, not a jsp page. Isn't the interceptor supposed to redirect to expiredSession.jsp? In other words, isn't the ajax call that initiated this nullified because the interceptor returns "loginRequired"? That's the whole point of this globa

Re: iterable tag

2013-01-13 Thread fusillator
Sorry that's obviously my fault The right code is: Il 13/01/2013 16:48, fusillator ha scritto: I've another question related the example code... I changed the getPeople code as you suggested: static public Collection getPeople(){ return new ArrayList(people.values()); } but I h

Re: iterable tag

2013-01-13 Thread fusillator
I've another question related the example code... I changed the getPeople code as you suggested: static public Collection getPeople(){ return new ArrayList(people.values()); } but I have to change the if tag's expression from to: it seems the first is always valuated false (no exc

Re: iterable tag

2013-01-13 Thread fusillator
I still don't know the framework very well to report the bug, if opportune, someone more expert than me might open it. I'll use your workaround. Thanks for your support. Kind regards Il 12/01/2013 22:59, Chris Pratt ha scritto: Looking through the code and the exception. This appears to be a

Re: iterable tag

2013-01-13 Thread fusillator
I changed a bit the code of the wiki's tutorial about wildcard for learning purpose, my version is reported in the previous mail.. This is the slice using the tag in the view page ... No person inserted The iterator value "people" should trigger a call to the action's getPeople me