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
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
*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
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
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
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
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
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
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
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
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
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
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
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
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
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\]\
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
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
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
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
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
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']
>
>
>
>
= 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
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
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
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?
>>
> 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 :/
>
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?
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
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
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
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
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
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
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
>
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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:
>
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
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
> >
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;
>
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
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 *
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
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
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
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
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
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
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
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
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
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
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
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
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
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 = ""
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
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
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:
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
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
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
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
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
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
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
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
#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
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
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
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
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
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,
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
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 - 100 of 2284 matches
Mail list logo