Re: Very fast logout of Heartbeat session

2024-08-29 Thread Priti Pithadia
Thank you lukasz for sharing the link. On Thu, Aug 29, 2024 at 6:47 AM Lukasz Lenart wrote: > Based on the stack trace I would double check index.jsp file - looks > like it has some references to Session. Just to remind you, the > session isn't created anymore if not requested by

Re: Very fast logout of Heartbeat session

2024-08-29 Thread Lukasz Lenart
Based on the stack trace I would double check index.jsp file - looks like it has some references to Session. Just to remind you, the session isn't created anymore if not requested by developer/user, see https://issues.apache.org/jira/browse/WW-4741 wt., 27 sie 2024 o 20:54 Priti Pithadia na

Re: Very fast logout of Heartbeat session

2024-08-27 Thread Priti Pithadia
*Hi Lukasz,* *Subject:* Assistance Required for Struts Upgrade Issue - “Session Already Invalidated” I am currently upgrading our application from Struts 2.5 to Struts 6.1.2 and from JDK 8 to JDK 11, using Payara Enterprise 5.63.0. The upgrade has been successful overall, except for the “logout

Re: Very fast logout of Heartbeat session

2024-03-10 Thread Mahabir Gupta
Dear Lukas, Please ignore my question. The Heartbeat Session has nothing to do with Struts6. Thank you. Regards Mahabir On Mon, Mar 11, 2024 at 9:45 AM Mahabir Gupta wrote: > Dear Lukasz, > > I have upgrade my Struts2 to Struts6.3.0.2. However as I am still using > local environ

Re: Very fast logout of Heartbeat session

2024-03-10 Thread Mahabir Gupta
Dear Lukasz, I have upgrade my Struts2 to Struts6.3.0.2. However as I am still using local environment to test the application, the Heartbeat Session gets logged out very soon. Is there a way I can change the Heartbeat Session from logging out very quickly. Kindly advise. Thank you. Regards

Re: Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-25 Thread Burton Rhodes
PM Subject Re: Issue with ExecuteAndWait when using Spring Session (Redis) Depending on your deployment architecture, this exec and wait may no longer be the right strategy. Yes, by managing the executor pool you can bound how many non-http-serving threads (jobs) are executing concurrently

Re: Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-24 Thread Dale Newfield
eady running and this p my try just > a status check. Is it looking at the request to figure that out? If so, and > the expected info isn't found, walk the data path to figure out where it is > getting lost (sounds like the session filter might be a good place to start). > Is i

Re: Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-23 Thread Dale Newfield
out where it is getting lost (sounds like the session filter might be a good place to start). Is it looking in a database/shared memory/file system? Perhaps these are not in sync? Perhaps the long running job is doing everything in a single transaction, not committed until the very end, an

Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-23 Thread Burton Rhodes
I am attempting to implement a centralized session store to an existing application using Spring Session (Redis) and Struts. I have everything working on a basic level, but I am running into an issue when a Struts Action uses ExecuteAndWait. The refresh attempts don't seem to pick up

Re: Struts 1 -> Struts 2 migration session parameters not found

2020-09-02 Thread Natta Wang
Thanks to you guys. Now I succeed implement session parameters that I expected to appear in Struts2 action by implement with SessionAware. On 2020/08/27 18:31:20, Lukasz Lenart wrote: > czw., 27 sie 2020 o 13:17 Natta Wang napisał(a): > > > > I start to migrate from Struts 1

Re: Struts 1 -> Struts 2 migration session parameters not found

2020-08-27 Thread Lukasz Lenart
czw., 27 sie 2020 o 13:17 Natta Wang napisał(a): > > I start to migrate from Struts 1 to Struts 2 and found a problem that I want > to ask for help with the session. > > In Struts 1 web.xml, I have a Filter class that maps to servlet and when it > be called, it will set a

Re: Struts 1 -> Struts 2 migration session parameters not found

2020-08-27 Thread M Huzaifah
Hii Natta Wang, Are you try using session interceptor? In java, the session could access using ServletActionContext.getRequest().getSession(); it will return servlet HttpSession and use getAttribute() method to ge your particular session by given sessionAttribut name. To access session in jsp, i

Struts 1 -> Struts 2 migration session parameters not found

2020-08-27 Thread Natta Wang
I start to migrate from Struts 1 to Struts 2 and found a problem that I want to ask for help with the session. In Struts 1 web.xml, I have a Filter class that maps to servlet and when it be called, it will set a parameter with an object. All Struts 1 JSP pages can access the session that has

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-10-02 Thread Lukasz Lenart
2017-09-29 17:35 GMT+02:00 Roslyakova, Svetlana : > Below didn't work. We ended up creating new Map variable in Action, updating > that variable in jsp and setting session from that variable in Action. Thanks for posting back your solution, I think we should start collecting all

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-29 Thread Roslyakova, Svetlana
Below didn't work. We ended up creating new Map variable in Action, updating that variable in jsp and setting session from that variable in Action. Thanks, Lana. -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Wednesday, September 27, 2017 1:53

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-27 Thread Lukasz Lenart
2017-09-27 13:49 GMT+02:00 Roslyakova, Svetlana : > 250917 [http-nio-8080-exec-8] WARN > com.opensymphony.xwork2.interceptor.ParametersInterceptor - Parameter > [#session['userList'][0].UserId] matches excluded pattern > [(^|\%\{)((#?)(top(\.|\['|\[")|\[\d\]\

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-27 Thread Roslyakova, Svetlana
Hi Yasser, Replacing .UserID with lowercase u .userId didn't work either. I've got the following warning message: 250917 [http-nio-8080-exec-8] WARN com.opensymphony.xwork2.interceptor.ParametersInterceptor - Parameter [#session['userList'][0].UserId] matc

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Lukasz Lenart
2017-09-26 18:11 GMT+02:00 Roslyakova, Svetlana : > Here is the full example: > > > > > > >"> type="text" id="userId" theme="simple" name="session. userList > [%{#stat.index}].UserId" value="%{top.UserId}&quo

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Yasser Zamani
any related WARN. [1] https://struts.apache.org/docs/devmode.html > -Original Message- > From: Yasser Zamani [mailto:yasser.zam...@live.com] > Sent: Tuesday, September 26, 2017 1:49 PM > To: user@struts.apache.org > Subject: Re: Question about upgrade to struts2 2.3.34 and

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Roslyakova, Svetlana
Hi Yasser, Unfortunately it didn't work either. Thanks, Lana. -Original Message- From: Yasser Zamani [mailto:yasser.zam...@live.com] Sent: Tuesday, September 26, 2017 1:49 PM To: user@struts.apache.org Subject: Re: Question about upgrade to struts2 2.3.34 and session variables

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Yasser Zamani
On 9/26/2017 9:14 PM, Roslyakova, Svetlana wrote: > Hi Yasser, > > Here is my Session getters/setters: > > public void setSession(Map arg0) { > this.Session = arg0; > } > > public Map getSession() { > return Se

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Yasser Zamani
On 9/26/2017 7:41 PM, Roslyakova, Svetlana wrote: > Here is the full example: > > > Does your action have getSession() method? As I remember, to access session we should use #session e.g. #session.userList or #session['userList'] > > > >

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Roslyakova, Svetlana
= userId; } It all worked before the upgrade. Thanks, Lana. -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org] Sent: Tuesday, September 26, 2017 11:39 AM To: Struts Users Mailing List Subject: Re: Question about upgrade to struts2 2.3.34 and session v

Re: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Lukasz Lenart
2017-09-26 17:27 GMT+02:00 Roslyakova, Svetlana : > Hi Lukasz, > > I have another issue with struts2 2.3.34 upgrade. > We are using session variables throughout the application: > > name="session.user.UserId" value="%{top.UserId}" /> What getters/sette

RE: Question about upgrade to struts2 2.3.34 and session variables

2017-09-26 Thread Roslyakova, Svetlana
Hi Lukasz, I have another issue with struts2 2.3.34 upgrade. We are using session variables throughout the application: After the upgrade, the session variable is not updated anymore. Any advice? Thanks, Lana. -Original Message- From: Lukasz Lenart [mailto:lukaszlen...@apache.org

Re: User (session) specific number formatting which overrides Locale

2016-05-15 Thread Andreas
s subset of users. >> >> >> One idea I had was to set the number-format in a session, and then use >> it (if it exist) for number formatting. But despite experiments, this >> does not seem to work :/ >> >> >> Anyone have an idea what I can do? >>

Re: User (session) specific number formatting which overrides Locale

2016-05-13 Thread Christoph Nenning
> only 2, and I can not find a good solution for this that only works for > this subset of users. > > > One idea I had was to set the number-format in a session, and then use > it (if it exist) for number formatting. But despite experiments, this > does not seem to work :/ >

User (session) specific number formatting which overrides Locale

2016-05-12 Thread Timmy
lution for this that only works for this subset of users. One idea I had was to set the number-format in a session, and then use it (if it exist) for number formatting. But despite experiments, this does not seem to work :/ Anyone have an idea what I can do?

RE: struts2 interceptor session timeout with ajax

2016-03-30 Thread Martin Gainty
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

Re: struts2 interceptor session timeout with ajax

2016-03-29 Thread Lukasz Lenart
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

Re: struts2 interceptor session timeout with ajax

2016-03-29 Thread 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 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

Re: struts2 interceptor session timeout with ajax

2016-03-11 Thread Lukasz Lenart
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

Re: struts2 interceptor session timeout with ajax

2016-03-11 Thread fea jabi
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

struts2 interceptor session timeout with ajax

2016-03-09 Thread fea jabi
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

Re: TokenInterceptor locking HTTP session for entire action invocation?

2015-07-13 Thread Lukasz Lenart
or all other people on the system such as >> > Bob and Charlie is hung, because the List Users page is trying to show >> > whether or not "Alice" is logged in by accessing properties of her HTTP >> > session. >> > >> > Is it necessary for TokenI

Re: TokenInterceptor locking HTTP session for entire action invocation?

2015-07-13 Thread Ken McWilliams
up > > to about 30 seconds sometimes. When this action is running on behalf of > > "Alice", the "List Users" page for all other people on the system such as > > Bob and Charlie is hung, because the List Users page is trying to show > > whether or not "Alic

Re: TokenInterceptor locking HTTP session for entire action invocation?

2015-07-13 Thread Lukasz Lenart
ple on the system such as > Bob and Charlie is hung, because the List Users page is trying to show > whether or not "Alice" is logged in by accessing properties of her HTTP > session. > > Is it necessary for TokenInterceptor to hold onto the session lock for the > entire

TokenInterceptor locking HTTP session for entire action invocation?

2015-07-11 Thread rgm
the List Users page is trying to show whether or not "Alice" is logged in by accessing properties of her HTTP session. Is it necessary for TokenInterceptor to hold onto the session lock for the entire action invocation? Sincerely, rgm

TokenInterceptor locking HTTP session for entire action invocation?

2015-07-10 Thread rgm
the List Users page is trying to show whether or not "Alice" is logged in by accessing properties of her HTTP session. Is it necessary for TokenInterceptor to hold onto the session lock for the entire action invocation? Sincerely, rgm

Re: session already invalidate error in Tomact 7.0.22

2014-08-04 Thread Lukasz Lenart
2014-08-04 13:50 GMT+02:00 saikrishna : > 2014-08-04 01:39:03,107 ERROR Dispatcher:38 - Exception occurred during > processing request: getAttribute: Session already invalidated > java.lang.IllegalStateException: getAttribute: Session already invalidated >

Re: session already invalidate error in Tomact 7.0.22

2014-08-04 Thread saikrishna
014-07-17 09:25:37,654 ERROR Dispatcher:38 - Exception occurred during > > processing request: getAttribute: Session already invalidated > > java.lang.IllegalStateException: getAttribute: Session already invalidated > > at > > org.apache.catalina.session.StandardSe

Re: session already invalidate error in Tomact 7.0.22

2014-07-28 Thread Lukasz Lenart
Can you post the whole stacktrace? 2014-07-22 13:59 GMT+02:00 saikrishna : > Hi > > I am getting the below error,repeatedly.Kindly adivce me on the soulution. > > > 2014-07-17 09:25:37,654 ERROR Dispatcher:38 - Exception occurred during > processing request: getAttri

session already invalidate error in Tomact 7.0.22

2014-07-22 Thread saikrishna
Hi I am getting the below error,repeatedly.Kindly adivce me on the soulution. 2014-07-17 09:25:37,654 ERROR Dispatcher:38 - Exception occurred during processing request: getAttribute: Session already invalidated java.lang.IllegalStateException: getAttribute: Session already invalidated

Re: S2 how to determine if a session exists from an Interceptor

2014-02-06 Thread Lukasz Lenart
http://struts.apache.org/release/2.3.x/docs/create-session-interceptor.html 2014-02-06 19:42 GMT+01:00 Dave Newton : > There's the session interceptor. It's unusual that you'd execute an action > and not have a session, though, since JSP pages will create their own if >

Re: S2 how to determine if a session exists from an Interceptor

2014-02-06 Thread Dave Newton
There's the session interceptor. It's unusual that you'd execute an action and not have a session, though, since JSP pages will create their own if one doesn't exist and it (the JSP) isn't explicitly configured not to create one. On Thu, Feb 6, 2014 at 1:33 PM, G

Re: S2 how to determine if a session exists from an Interceptor

2014-02-06 Thread Greg Lindholm
My Interceptor is expecting a session to exist, but I'm occasionally getting exceptions that say the session doesn't exist, and since this occurs after the action has executed and response has been committed it is too late to create a session. So my question is; From with an Intercepto

Re: S2 how to determine if a session exists from an Interceptor

2014-02-06 Thread Ken McWilliams
The OP has abstracted away most of the details, he is working with Map! The session is not generally struts2s responsibility it, generally it is maintained by the web container. Tomcat/Glassfish, etc. And generally you would consider it in such an environment to always exist. What kind of

Re: S2 how to determine if a session exists from an Interceptor

2014-02-06 Thread Maurizio Cucchiara
Hi Greg, I seem to recall that this is not the best way to handle the session and generally speaking, it always better to abstract as much as possible http's details I could be wrong, but It would be better if your action implements a specific interface (SessionAware or HttpSessionAware) Tw

S2 how to determine if a session exists from an Interceptor

2014-02-06 Thread Greg Lindholm
I have an Interceptor that wants to put something in the session after the action has executed. But if the session doesn't already exist I get an exception: java.lang.IllegalStateException: Cannot create a session after the response has been committed How can I determine if the session al

Antwort: Re: Token Session Interceptor and back button

2013-12-10 Thread Christoph Nenning
tors.html regards, Christoph Von:semog12 An: user@struts.apache.org, Datum: 09.12.2013 13:04 Betreff:Re: Token Session Interceptor and back button Hi, Thank for the replies but when I was trying your solution I encounter another situation. I am using tiles to crea

Re: Token Session Interceptor and back button

2013-12-09 Thread semog12
this: page_head.jsp: Thanks, André Gomes -- View this message in context: http://struts.1045723.n5.nabble.com/Token-Session-Interceptor-and-back-button-tp5714861p5714880.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Token Session Interceptor and back button

2013-12-06 Thread Paul Benedict
at. Were you thinking > of something else? > > > Miguel > > On Thu, 2013-12-05 at 14:59 -0600, Paul Benedict wrote: > > > Make sure your back-button action refreshes the page. You can't reuse a > > token from the browser's cache. It needs to regenerate

Re: Token Session Interceptor and back button

2013-12-06 Thread Miguel Almeida
0600, Paul Benedict wrote: > Make sure your back-button action refreshes the page. You can't reuse a > token from the browser's cache. It needs to regenerated. > > > On Thu, Dec 5, 2013 at 12:39 PM, semog12 wrote: > > > Hi, > > > > I am using the token sess

Re: Token Session Interceptor and back button

2013-12-05 Thread Paul Benedict
Make sure your back-button action refreshes the page. You can't reuse a token from the browser's cache. It needs to regenerated. On Thu, Dec 5, 2013 at 12:39 PM, semog12 wrote: > Hi, > > I am using the token session interceptor for a form and I have this > situation: >

Token Session Interceptor and back button

2013-12-05 Thread semog12
Hi, I am using the token session interceptor for a form and I have this situation: 1) I am in the form page; 2) I leave the form page; 3) Go back to the form page by the "back" button; 4) Submit the form; And of course the form is not submitted and the token returns "invalid.to

Re: Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-19 Thread Antonios Gkogkakis
Hi John, You have to use var instead of id in the s:iterator tag. Antonios On 19 November 2013 07:06, Lukasz Lenart wrote: > Have you tried to use tag? > > 2013/11/19 john lee : > > > > > > from the following output, > >we can tell sell_price=36.97, display_price=1 > > > > why > >

Re: Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-18 Thread Lukasz Lenart
Have you tried to use tag? 2013/11/19 john lee : > > > from the following output, >we can tell sell_price=36.97, display_price=1 > > why >none of test statement works ? > > > please advise, thanks in advance > > john > > > > Class Part { > float sell_price; >

Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-18 Thread john lee
from the following output,    we can tell sell_price=36.97, display_price=1 why    none of test statement works ? please advise, thanks in advance john   Class Part { float sell_price;     int display_price;     ./*..get set here */ Act

s:if iterator session problem

2013-11-18 Thread john lee
  from the following output,    we can tell sell_price=36.97, display_price=1   why    none of test statement works ?     please advise, thanks in advance   john       Class Part { float sell_price;     int display_price;     ./*..get set here *

Re: Why Ajax calls don't renew session timeout on Tomcat server?

2013-05-15 Thread Paul Benedict
You don't give enough information to diagnose the problem, but I imagine you're not passing the session information (e.g., jsessionid cookie) back to the server. On Wed, May 15, 2013 at 12:30 PM, Norah Jones wrote: > Hi, > > I have a web application which is deployed

Why Ajax calls don't renew session timeout on Tomcat server?

2013-05-15 Thread Norah Jones
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

Re: struts 2 session question

2013-05-08 Thread Dave Newton
Personally, I'd use SessionAware and reduce coupling even further. The docs for both methods should answer this question fairly completely. The session is exposed as a map in S2, and as a servlet spec artifact in S1. Dave On Wed, May 8, 2013 at 12:15 PM, john lee wrote: > > for

struts 2 session question

2013-05-08 Thread john lee
  for stuts 1, to get session, via the following     session=request.getSession();   session.setAttribute("PERSON", person);    /* person is object name */   for struts 2, to get session, via the following     Map session=ActionContext.getContext().getSession();   s

Re: struts 2 session share

2013-03-10 Thread Chris Pratt
s granted an > session. > > his shopping cart is saved into an session object. > > sometimes, customer need help for his shopping cart, in order to do that, > we need to access his cart/session object. > > how can we do session share in struts2 ? in other words,we need to save

struts 2 session share

2013-03-10 Thread john lee
after user login our e-commerce site successfuly, he was granted an session. his shopping cart is saved into an session object. sometimes, customer need help for his shopping cart, in order to do that, we need to access his cart/session object. how can we do session share in struts2 ? in

Re: Different session handling between websphere and tomcat

2013-01-16 Thread Lukasz Lenart
ache.org/2.x/docs/websphere.html > > > Kind regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > 2013/1/10 Vineet Kanwal : >> >> IBM WebSphere Application Server uses the JSESSIONID information to keep >> track of the client session. If y

Re: Different session handling between websphere and tomcat

2013-01-15 Thread Lukasz Lenart
2013/1/10 Vineet Kanwal : >> >> IBM WebSphere Application Server uses the JSESSIONID information to keep >> track of the client session. If you have an application where the >> application client must navigate across multiple WebSphere Application >> Server nodes resid

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
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 global intercep

RE: Session Expired Interceptor

2013-01-13 Thread BetBasoo, Peter
s the whole point of this global interceptor. If the session has expired, the user should be redirected to expiredSession.jsp, regardless of the call's origin. For example, the action I have defined below, getClientAccounts, is an ajax call. If the session has expired and the user clicks on the

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
rote: > 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 Str

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 = ""

Re: Different session handling between websphere and tomcat

2013-01-11 Thread Lukasz Lenart
SIONID information to keep > track of the client session. If you have an application where the > application client must navigate across multiple WebSphere Application > Server nodes residing in same domain, then the JSESSIONID information may > be over-written on the client because multiple

Re: Different session handling between websphere and tomcat

2013-01-10 Thread Vineet Kanwal
IBM WebSphere Application Server uses the JSESSIONID information to keep track of the client session. If you have an application where the application client must navigate across multiple WebSphere Application Server nodes residing in same domain, then the JSESSIONID information may be over

RE: Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-08-20 Thread Martin Gainty
l peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 20 Aug 2012 14:02:36 +0200 > Subject: Re: Open session in view (JPA, struts2, Spring 3, Hibernate4) > From: lukaszlen...@apache.org > To:

Re: Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-08-20 Thread Lukasz Lenart
2012/8/9 Mounir Benzid : > sorry for the late response. web.xml ---> http://pastebin.com/XPiQ3ZJB > > I guess the problem might be that the transaction boundary starts and ends > within the controller class I wrote to manage entities. The action itself > doesn't participate in the transaction. If m

RE: Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-08-09 Thread Martin Gainty
HTTP Session captures dynamic Session variables from Session initialisation to Session invalidation or timeout a Database Transaction captures database information from Start to (commit or rollback) Is there a reason why you would want your Session to be disconnected from the Database

Re: Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-08-09 Thread Mounir Benzid
Am 7/26/2012 4:39 PM, schrieb Maurizio Cucchiara: Did you try to extend the url mapping to the whole root? f.e.: /* Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedin.com/in/mauriziocucchiara Maurizio Cu

Re: Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-07-26 Thread Maurizio Cucchiara
Did you try to extend the url mapping to the whole root? f.e.: /* Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 26 July 2012 15:36, Łukasz Lenart wrot

Re: Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-07-26 Thread Łukasz Lenart
Could you show the whole web.xml ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For add

Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-07-26 Thread Mounir Benzid
Because of a "limitation" (which is rather a bug) of Hibernate 4, I need to switch to an open-session-in-view pattern in struts2 I was hoping that setting the right spring configuration in my web.xml would do the trick (see below) The session still dies before the view layer (ogn

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-16 Thread Miguel Almeida
Regarding this issue - and considering any interceptor, not just the ExecAndWaitInterceptor: 1) My issue was, in fact, that I was accessing the request/session scoped bean in my init method. The init method was being called at app startup, where no such context exists 2) If we remove that access

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-15 Thread Łukasz Lenart
What I mean is that injecting something in ExecAndWaitInterceptor which has brought scope can rise concurrency issue because the same bean can be used in two different threads (ExecAndWaitInterceptor thread and request thread). I would rather pack whatever is needed by ExecAndWaitInterceptor and pa

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-14 Thread Miguel Almeida
#x27;t know anything about http sessions or requests and should really be http agnostic). Could you clear me up on you meant by your approach? Thanks, Miguel Almeida On 05/14/2012 08:11 PM, Łukasz Lenart wrote: I think it's better to repackage what you need and pass as a context variables ins

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-14 Thread Łukasz Lenart
I think it's better to repackage what you need and pass as a context variables instead inject session aware beans. It can produce concurrency issues. Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitu

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-14 Thread wild_oscar
Hi, I've got the exact same problem as this user. Injecting either request or session scoped beans in an interceptor yields the error "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.diagnosticContext': Scope 'sessi

Re: Struts2 session concurrency issue ?

2012-04-25 Thread Dionis Argiri
Actual problem was with my load testing utility. I have not used jsessionid and thus it was causing the "problem". Also I have took a look at source code. When calling ActionContext.getContext().getSession() - SessionMap is returned. It is a map, that wraps session and uses synchroniza

Re: Struts2 session concurrency issue ?

2012-04-25 Thread Rene Gielen
Please remember that the HTTP session is not synchronized. Thus, using the session.put is a critical method. Most likely, what you really want to do is counter = session.get("counter"); counter.increment (or incrementAndGet) In this way you ensure exactly the same object is accessed and

Re: Struts2 session concurrency issue ?

2012-04-25 Thread Gabriel Belingueres
The "S2 way" of accessing the session is implementing the SessionAware interface. First you must realize that what you are putting on session scope is not the AtomicInteger per se, but its current value at the moment you call the first action, so unless you call the first action again,

Re: Struts2 session concurrency issue ?

2012-04-25 Thread Dionis Argiri
No, my utility don't remember session id. Probably it's the problem. Then I'll need to rewrite my utility code, so that it handles it the right way(setting cookies in headers). Ok, but another question is whether or not Map that I get when calling ActionContext.getContext().getSess

Re: Struts2 session concurrency issue ?

2012-04-25 Thread Aaron Brown
To answer, I think we need to know more about your utility program that triggers action 2. Sessions are tracked through a cookie containing a JSESSIONID. Does your utility retain cookies so that each page load will reference the same session? Also, does your utility wait for each page to complete

  1   2   3   4   5   6   7   8   9   10   >