MG>pls see below
> From: lukaszlen...@apache.org
> Date: Wed, 30 Mar 2016 07:59:28 +0200
> Subject: Re: struts2 interceptor session timeout with ajax
> To: user@struts.apache.org
>
> I think you must use `onSuccessTopics` instead of `onErrorTopics` -
> returning 403 does
I think you must use `onSuccessTopics` instead of `onErrorTopics` -
returning 403 doesn't mean an error
2016-03-29 21:59 GMT+02:00 fea jabi :
> Thanks, it worked but now trying this and not sure how to fix this.
>
> Have a on a page.
> After session timeout trying to click
Thanks, it worked but now trying this and not sure how to fix this.
Have a on a page.
After session timeout trying to click on another tab of tabbed panel should
redirect the user to login page.
panel not firing the onErrorTopics. The javascript function is not
getting called. The server is
10:51 AM
> To: user@struts.apache.org
> Subject: struts2 interceptor session timeout with ajax
>
> Have jquery tabbed panel in a jsp page which has a button to Save the form in
> the tabbed panel which is making an ajax call and is working fine.
>
> Now trying to implement the s
Need help with this please.
From: fea jabi
Sent: Wednesday, March 9, 2016 10:51 AM
To: user@struts.apache.org
Subject: struts2 interceptor session timeout with ajax
Have jquery tabbed panel in a jsp page which has a button to Save the form in
the tabbed
Have jquery tabbed panel in a jsp page which has a button to Save the form in
the tabbed panel which is making an ajax call and is working fine.
Now trying to implement the session management for all requests in the
application and imlemented the new interceptor to perform the same. Having
issu
on a Tomcat server (version 7).
> I have set the session timeout value as 10 minutes in the web.xml file. In
> pages with no Ajax call, the session time out value is reset promptly. But
> it is not renewed on pages with Ajax calls. Web application is taking user
> back to Login screen even th
Hi,
I have a web application which is deployed on a Tomcat server (version 7). I
have set the session timeout value as 10 minutes in the web.xml file. In pages
with no Ajax call, the session time out value is reset promptly. But it is not
renewed on pages with Ajax calls. Web application is
> 1) Can we test it with a struts integration test?
> 2) How can we mock the time span (ie, we obviously don't want to wait 5
> minutes for the test to finish...).
Are you testing what happens when a session is no longer a session?
Invalidate the session in your test:
http://struts.apache.org/2.2
1 ?
Beez
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Dear all,
Today's question is on the borderline between Struts and general "good
testing practises".
I have an application requirement "users must re-login after 5 minutes
of inactivity".
Now, the way to do this is to add to the web.xml:
5
However, how does one test it? More specifically:
1
nds,
>
>
>
> How can I forward to a login page on session Timeout? Will struts
> create a Default session?
>
>
>
> I am checking for a value of a locale variable set to default session on
> my JSP page. After
>
>
>
>if(request.getSessi
Hi Friends,
How can I forward to a login page on session Timeout? Will struts
create a Default session?
I am checking for a value of a locale variable set to default session on
my JSP page. After
if(request.getSession(false).getAttribute("locale") == null){
//r
i configured in web.xml
com.listener.SessionUserListener
1
but the valueUnbound in SessionUserListener is not executed when session is
timeout,who can tell me why?
___
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.
rg
> Subject: RE: Session timeout - SOLVED
> Date: Fri, 17 Oct 2008 16:48:05 +
>
>
> I've done it using an interceptor and it works properly. Thanks all!
>
> > From: [EMAIL PROTECTED]
> > To: user@struts.apache.org
> > Subject: RE: Session timeout
>
I've done it using an interceptor and it works properly. Thanks all!
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: RE: Session timeout
> Date: Thu, 16 Oct 2008 12:12:08 -0400
>
>
> your web.xml contains a session-timeout parameter set e.g.
>
your web.xml contains a session-timeout parameter set e.g.
30
from my understanding..regular catalina SSL or non-SSL connector has no ability
to understand events
you may want to look at implementing NIOConnector which will throw RetryRequest
for Continuation.getEvent() calls
http
I think the usual method is to have some kind of authentication
interceptor on your stack. If it cannot find a
User/Login/Authentication object in the session for the current request,
then it redirects to the login page. That's all server-side, of course.
Francisco Exposito wrote:
Hi,
How
Hi,
How can I check if my session is timed out and redirect then to the login page?
Regards,
Paco
_
Llega la nueva temporada. Consulta las nuevas tendencias en MSN Estilo
http://estilo.es.msn.com/moda/
Hi..
Previously I thought it was session timeout, therefore I set a higher session
timeout value.
I tried to generate the pdf file again, this time it still timeout but it
haven't reach the threshold yet.
So, I can confirm it's request timeout.
I tried to use a dummy ajax w
Are we talking about a *session* timeout or a *request* timeout? You
original message implied the former, since you were trying to correct it
with session.setMaxInactiveInterval(), but if it's a request timeout
that's not going to have any effect.
It sounds like the PDF generation
espective of what you do in your webapp.
If the timeout occurs during the PDF generation, before the response
begins being streamed back, maybe. But as long as there is response data
being transmitted, no timeout should occur at the connection level. A
session timeout is an app-server function, any
our webapp.
>
> If the file takes so long to generate is there any reason why your not
> pre-generating it, caching it and serving it as a static file?
>
> Al.
>
> - Original Message -
> From: "Simon Sew"
> To:
> Sent: Thursday, May 22, 2008 7:32 AM
nse
data being transmitted, no timeout should occur at the connection
level. A session timeout is an app-server function, anyhow; clients
and proxies know nothing about the session.
Simon, is the timeout occuring during the request for the PDF, while
it is being generated and before th
data
being transmitted, no timeout should occur at the connection level. A
session timeout is an app-server function, anyhow; clients and proxies
know nothing about the session.
Simon, is the timeout occuring during the request for the PDF, while it
is being generated and before the action begins
f the file takes so long to generate is there any reason why your not
> pre-generating it, caching it and serving it as a static file?
>
> Al.
>
> - Original Message -
> From: "Simon Sew"
> To:
> Sent: Thursday, May 22, 2008 7:32 AM
> Subject: Request/s
imeout irrespective of what you do in your webapp.
If the file takes so long to generate is there any reason why your not
pre-generating it, caching it and serving it as a static file?
Al.
- Original Message -
From: "Simon Sew"
To:
Sent: Thursday, May 22, 2008 7:32 AM
Subject: Request
Message -
From: "Simon Sew" <[EMAIL PROTECTED]>
To:
Sent: Thursday, May 22, 2008 7:32 AM
Subject: Request/session timeout when exporting very large files
Hi,
I'm having this request/session timeout problem.
My page have a link to generate and export pdf file. The prob
Hi,
I'm having this request/session timeout problem.
My page have a link to generate and export pdf file. The problem is sometimes
the generated file is very huge (100MB++) and it takes quite some time to
export it (30 to 90 minutes). How do I prevent it from timeout when it is
exporti
Hi,
You should be able to use servlet filters to block the request from
going to the actions: http://java.sun.com/products/servlet/Filters.html
I would do it your way and check for timeout by checking for the
presence of session objects. There may be better ways, but I can't
think of any o
Hello
I am using struts 1
I am working on some legacy code. Have a requirement where the user should
be fwded to the login page after session times out. Currently there are
100's of action classes and it wont be feasible to touch each one and check
if the session exists.
Can we do something in
: Wednesday, January 16, 2008 9:23 AM
Subject: Re: Dynamic session timeout
I do that with
ServletActionContext.getRequest().getSession().setMaxInactiveInterval
Hope this helps
Il giorno 16/gen/08, alle ore 10:14, Al Sutton ha scritto:
Heres a problem people may want to take a crack at..
I do that with
ServletActionContext.getRequest().getSession().setMaxInactiveInterval
Hope this helps
Il giorno 16/gen/08, alle ore 10:14, Al Sutton ha scritto:
Heres a problem people may want to take a crack at...
In one of my webapps I allow the admin users to set how long a users
sess
Heres a problem people may want to take a crack at...
In one of my webapps I allow the admin users to set how long a users session
is valid for, in a servlet I can set this by doing
session.setMaxInactiveInterval when the user logs in, but can I do this in a
struts action?
>> Struts 2 (I think) will recreate your session when it times out.
I assume that you mean Struts 2 will create a fresh session, but not have
any values in it.
Did you find why this is happening and any workaround ? - seems i'm facing
the same issue.
What's the best way to detect that the sessio
I noticed while developing my application that Struts 2 (I think) will
recreate your session when it times out.
I have several name spaces used in my packages such as:
1. /Admin
2. /Design
3. /
While I am hitting actions in the /Admin or /Design area of my
application, if the session times out
Hello all,
I am currently writing an application which requires a login and thus an
active session. I have been using the anchor and div tags in the ajax theme
to help with browsing related data.
Today I discovered an interesting scenario which I was hoping to get help
with.
1. I log into the
For example on session timeout if user clicks on a tab, login page is
displayed as a tab content.
What is the best way to handle this so that the login screen gets
rendered as a new page instead of tab content.
If user clicks on some hyper link it gets redirect to full login page
as exp
Hi,
Struts2 allows me to use easily inner div functionality, submitting
forms with a specific targets, etc ... Works wonderfully.
But ... now I have a problem with it.
User navigates through such ajax enabled page, some links and submit
buttons on that page have target to some divs.
After some t
ase.
-ed
On 8/30/06, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote:
> hi,
>
> I think a new session is created if you invoke an action mapping. this
code will not work. what you have to do is, add some attribute to the
session.. and check if that attribute is on the session. if not you c
ase.
-ed
On 8/30/06, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote:
> hi,
>
> I think a new session is created if you invoke an action mapping. this
code will not work. what you have to do is, add some attribute to the
session.. and check if that attribute is on the session. if not you c
8/30/06, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote:
hi,
I think a new session is created if you invoke an action mapping. this code
will not work. what you have to do is, add some attribute to the session.. and
check if that attribute is on the session. if not you can redirect to your
se
Hey Everyone,
I am trying to use a custom session timeout JSP. To do this, I extended
"RequestProcessor" and overrode "processPreprocess" and added the following
code:
HttpSession sess = req.getSession(false);
if(sess == null){
Hi everyone,
I just started implementing modules into a Struts app that has existed for a
while without them. Now, I have some functionality within a module. The
problem is that the session timeout now doesn't appear to work when the user
is within the module. I have these settings
Getting ready to leave so don't have time to look at your code but my
doFilter looks like...
//doFilter ...
String path = request.getRequestURL().toString();
String contextPath = request.getContextPath();
if (pathNeedsCheck(path)) {
HttpSession session = request.getSession(false);
if (sessi
Hi, I need help too...
How should I write the "if" that desires if the session is expired???/
thanks
Lucas
Adam Lipscombe <[EMAIL PROTECTED]> escribió:
Folks
Many thanks for all your input on this. I decided to go with the filter
approach.
My doFilter() method is below. I certainly traps the t
Folks
Many thanks for all your input on this. I decided to go with the filter
approach.
My doFilter() method is below. I certainly traps the timeout.
The problem now is that the redirect fails no matter if I use
"/pages/SessionTimedOut.jsp" or a fully qualified URL (e.g
"http://localhost:8080/Ex
gt;> >> On 5/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>> Although this approach might work, I don't like it so much. The
>> >>> reasons:
>> >>>
>> >>> 1) Maintainability: if you want to change
if you want to change the timeout to 30 minutes
> >>> (and
> >>> you have 50 jsp pages), then you have to make the change 50 times.
> >>>
> >>> 2) Business Logic: This approach will never prevent you Action from
> >>> executing. Since you hav
;Struts Users Mailing List"
Sent: Thursday, May 12, 2005 11:12 AM
Subject: Re: Best practice for redirecting on session timeout?
Hi
1) Maintainability: if you want to change the timeout to 30 minutes (and
you have 50 jsp pages), then you have to make the change 50 times.
Umm..ya...t
Hi
>> 1) Maintainability: if you want to change the timeout to 30 minutes (and
>> you have 50 jsp pages), then you have to make the change 50 times.
> Umm..ya...that's why I explicity said "preferrably via an include or let a
> filter do it for you".
Missed the filter part :)
>> 2) Business Logi
event you Action from
>>> executing. Since you have to go through an action to reach the jsp
>>> page,
>>> when the *page* reloads, you are actually reloading the action first.
>>> Having said that, if your action does something that should only be
>>> exe
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, May 12, 2005 10:34 AM
Subject: Re: Best practice for redirecting on session timeout?
Although this approach might work, I don't like it so much. The reasons:
1) Maintai
he *page* reloads, you are actually reloading the action first.
>> Having said that, if your action does something that should only be
>> executed if your session has not expired, your approach will not work.
>>
>> A combination of using a filter & session-config (in web.x
t; sending
> a request to some
> action class on the server.
>
> I was wondering if such a requirement can be handled on the server side?
>
>
> -Original Message-
> From: Aladin Alaily [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 12, 2005 8:32 AM
> To: Struts
> A combination of using a filter & session-config (in web.xml) solves both
> problems above. How?
>
> 1) You only have to change the session timeout setting in one place.
>
> 2) Your filter is executed before anything else. Hence, you never have to
> worry about an a
ing a filter & session-config (in web.xml) solves both
problems above. How?
1) You only have to change the session timeout setting in one place.
2) Your filter is executed before anything else. Hence, you never have to
worry about an action being executed unintentionally.
Aladin
> That&
Sent: Thursday, May 12, 2005 8:32 AM
To: Struts Users Mailing List
Subject: Re: Best practice for redirecting on session timeout?
Hi Adam,
One possibility is to have the timing out of the session be managed by
your container and have the redirection issued by a filter.
If you are using Tomcat 4+ th
That's easy, just drop this in all of your JSPs (preferrably via an include
or let a filter do it for you).
(assuming your session timeout is 20 minutes)
You should be handling invalid/expired session state in your application and
by using the above technique, it will work universally, wh
Hi Adam,
One possibility is to have the timing out of the session be managed by
your container and have the redirection issued by a filter.
If you are using Tomcat 4+ this is very straightforward to implement.
In the web.xml, you declare your session-timeout value and your filter
class. After
.
Assuming your security is managed in such a way then you will just need to
set the session timeout in web.xml to make this happen. This will inavlidate
the session after a specified period of inactivity, so the next request that
is made will be with an invalid session id/new session - so the login page
Hello,
It should be done in the RequestProcessor.
If none of your JSP is doing a forward to other JSP directly.
Shailender Jain
Adam Lipscombe wrote:
> Folks,
>
> I there a standard way of handling session timeouts. If a user has been
> inactive for longer than N minutes I want to redirect them
Folks,
I there a standard way of handling session timeouts. If a user has been
inactive for longer than N minutes I want to redirect them to the login
page.
It occurs to me that this could be done in a) the RequestProcessor or b) in
an JSP include.
Is there another way?
What is best practice?
In HttpSession there is a method: setMaxInactiveInterval
Set this value affects session timeout period.
On Thu, 10 Mar 2005 01:19:34 -, jelything <[EMAIL PROTECTED]> wrote:
>
> I want to give my users more time to go for coffe in the middle of a
> form submission. Well, t
I want to give my users more time to go for coffe in the middle of a
form submission. Well, that's what they want, if we're being honest.
At any rate, what are all the places that I have to change? I've
changed:
60
but it still seems to be timing out after 30.
TIA, J
.com
*"Khalid K." <[EMAIL PROTECTED]>*
04/20/2004 07:13 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc
Subject
RE: detecting sessio
I don't know whether struts is having any readymade classes or not.
But what your are trying to create is fairely simple
create a listener which listens session expiration event by extending class
HttpSessionListener.
In the sessionDestroyed method, do the operation which you want.
-Jignesh
gt; From: Harjot Narula [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 18, 2004 3:10 AM
> To: Struts Users Mailing List
> Subject: Session Timeout
>
>
> Hi
>
> I am using struts framework in an application.
> When any JSP times out, we cache the parameters and the reque
Hi
I am using struts framework in an application.
When any JSP times out, we cache the parameters and the request and
then forward the request to login page. After authentication, the cached request
and parameters are used and the control is redirected to the original request.
We are using websp
Freddy Villalba Arias wrote:
I believe Tomcat does provide that... not sure since when (which
version), though.
Terminating sessions via the invalidate() method is common to all
servlet containers. So is the fact that you can set the default session
timeout to 0 or less in web.xml to turn off
2 April 2004 13:36
> To: [EMAIL PROTECTED]
> Subject: determining session timeout value
>
>
> After getting some great suggestions here for various
> ways of handling session timeouts, I have implemented
> something I am very happy with. Now, when a timeout
> happens I
Dean A. Hoover wrote:
After getting some great suggestions here for various
ways of handling session timeouts, I have implemented
something I am very happy with. Now, when a timeout
happens I want to be more informative to the user by
constructing a message that tells them what the timeout
is in m
I think getMaxInactiveInterval on the HttpSession should give you what you
want.
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 13:36
To: [EMAIL PROTECTED]
Subject: determining session timeout value
After getting some great suggestions here for
After getting some great suggestions here for various
ways of handling session timeouts, I have implemented
something I am very happy with. Now, when a timeout
happens I want to be more informative to the user by
constructing a message that tells them what the timeout
is in minutes. Anyone know how
On Apr 20, 2004, at 12:30 AM, [EMAIL PROTECTED] wrote:
We have done a similar thing with filter. You put a check in the
filter to redirect to an error page if the session is not present in
the request. this will also prevent a user to access the site without
login in.
Although you have to put a
Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
"Khalid K." <[EMAIL PROTECTED]>
04/20/2004 07:13 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"'Struts Users Mailing
List'" <[EMAIL PR
s what the method is
called..can't recall the actual name)
Khalid
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, April 19, 2004 8:18 AM
To: [EMAIL PROTECTED]
Subject: detecting session timeout
Any suggestions on how to detect
session timeouts? I a
helps.
Cheers,
Sweta
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: 19 April 2004 16:18
To: [EMAIL PROTECTED]
Subject: detecting session timeout
Any suggestions on how to detect
session timeouts? I am experimenting
with extending TilesRequestProcessor
(I'm
Any suggestions on how to detect
session timeouts? I am experimenting
with extending TilesRequestProcessor
(I'm using struts 1.1 and tiles). Here's
an example of the kind of thing I would
like to detect: I have a multipage registration
process. Suppose a user gets halfway through
and then goes away
79 matches
Mail list logo