RE: AJAX Sessions

2011-01-28 Thread Biesbrock, Kevin
Sessions Here's a couple of the ways I handle it: action name=edit-ingredient class=ingredientEditAction result name=successingredients/result result name=login-required type=httpheader401/result result name=failure type=httpheader500/result /action action name

Re: AJAX Sessions

2011-01-28 Thread Dale Newfield
On 1/27/11 9:28 PM, CRANFORD, CHRIS wrote: 2. Does HttpSession contain value holding time of last User request? No - Create one, store it in session, proceed Shouldn't that - LOGIN instead of proceed? -Dale - To

AJAX Sessions

2011-01-27 Thread CRANFORD, CHRIS
updated; thus allowing user interaction to continue to track idle timeout. What have others done in your applications so that you can handle proper timeout of a sessions despite the fact your application may be getting AJAX requests refreshing the idle time on the session object? Chris

RE: AJAX Sessions

2011-01-27 Thread Scott
Are these Ajax requests *not* human initiated? IOW, are they timers? From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Thursday, January 27, 2011 8:29 PM To: Struts Users Mailing List Subject: AJAX Sessions In our application upon a successful authentication

RE: AJAX Sessions

2011-01-27 Thread CRANFORD, CHRIS
: Scott [mailto:stanl...@gmail.com] Sent: Thursday, January 27, 2011 8:37 PM To: 'Struts Users Mailing List' Subject: RE: AJAX Sessions Are these Ajax requests *not* human initiated? IOW, are they timers? From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Thursday, January

Re: AJAX Sessions

2011-01-27 Thread Dave Newton
: Thursday, January 27, 2011 8:37 PM To: 'Struts Users Mailing List' Subject: RE: AJAX Sessions Are these Ajax requests *not* human initiated?  IOW, are they timers? From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Thursday, January 27, 2011 8:29 PM To: Struts Users Mailing

Re: AJAX Sessions

2011-01-27 Thread Chris Pratt
To: 'Struts Users Mailing List' Subject: RE: AJAX Sessions Are these Ajax requests *not* human initiated? IOW, are they timers? From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Thursday, January 27, 2011 8:29 PM To: Struts Users Mailing List Subject: AJAX Sessions

Re: AJAX Sessions

2011-01-27 Thread Steven Yang
: RE: AJAX Sessions Are these Ajax requests *not* human initiated? IOW, are they timers? From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Thursday, January 27, 2011 8:29 PM To: Struts Users Mailing List Subject: AJAX Sessions In our application upon

[S2] Iterate over sessions

2010-01-12 Thread Gustavo Felisberto
the account the user can continue to use the application until he logs out and tries to login again. I did not want to have to go to the database each time the user performs an action. So when the Admin locks a user I would like to iterate over all sessions to see if that user is logged in and force

Re: [S2] Iterate over sessions

2010-01-12 Thread Lukasz Lenart
You can create a class that implements HttpSessionListener [1] and there register active user session in some global variable (bad idea). Or create custom interceptor that will all the time verify if given user is locked and forward him to appropriated page. [1]

Re: Manage Sessions in Struts

2008-12-01 Thread Paweł Wielgus
, then i continue to work on new tab. If i got it right it sholud not be possible to do it? Best greetings, Paweł Wielgus. 2008/12/1 Paul Benedict [EMAIL PROTECTED]: Oh, my apologies. I thought the discussion revolved around preventing the same person from having multiple sessions. If you want

Re: Manage Sessions in Struts

2008-12-01 Thread Dan
multiple sessions. If you want to just prevent multiple views, you need to integrate Spring WebFlowwt. Paul On Sun, Nov 30, 2008 at 4:45 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sun, 11/30/08, Paul Benedict wrote: I've seen this kind of solution before. When a user logs in, you

Re: Manage Sessions in Struts

2008-12-01 Thread Paul Benedict
preventing the same person from having multiple sessions. If you want to just prevent multiple views, you need to integrate Spring WebFlowwt. Paul On Sun, Nov 30, 2008 at 4:45 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sun, 11/30/08, Paul Benedict wrote: I've seen this kind of solution

Re: Manage Sessions in Struts

2008-12-01 Thread Struts Two
app abolutely session free. I have had the session mix-up issues using firefox/explorer tabs and this solution has also worked for me. hope it helps. --- On Sun, 11/30/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: Manage Sessions

Manage Sessions in Struts

2008-11-30 Thread Dani
Hi, In my web application I have to manage sessions. An user can not login from multiple browsers (just one session available per user). I have read that if browser window is cloned (such as a new tab in firefox or IE) the session is also cloned to this new tab so a user could have two

Re: Manage Sessions in Struts

2008-11-30 Thread Paweł Wielgus
if a request comes from first or second tab in ff. So if it's a real problem/requirement You should probably use something other than web based solution. Best greetings, Pawel Wielgus. 2008/11/30, Dani [EMAIL PROTECTED]: Hi, In my web application I have to manage sessions. An user can not login from

Re: Manage Sessions in Struts

2008-11-30 Thread stanlick
greetings, Pawel Wielgus. 2008/11/30, Dani [EMAIL PROTECTED]: Hi, In my web application I have to manage sessions. An user can not login from multiple browsers (just one session available per user). I have read that if browser window is cloned (such as a new tab in firefox or IE) the session

Re: Manage Sessions in Struts

2008-11-30 Thread Stewart Buskirk
Wielgus. 2008/11/30, Dani [EMAIL PROTECTED]: Hi, In my web application I have to manage sessions. An user can not login from multiple browsers (just one session available per user). I have read that if browser window is cloned (such as a new tab in firefox or IE) the session is also cloned

Re: Manage Sessions in Struts

2008-11-30 Thread Dan
based solution. Best greetings, Pawel Wielgus. 2008/11/30, Dani [EMAIL PROTECTED]: Hi, In my web application I have to manage sessions. An user can not login from multiple browsers (just one session available per user). I have read that if browser window is cloned (such as a new tab in firefox

Re: Manage Sessions in Struts

2008-11-30 Thread Paul Benedict
I've seen this kind of solution before. When a user logs in, you need to write them into a database -- either in memory or disk -- and then do not allow the same user to log in again until the previous session expires. You want to use a session listener for this to detect expired sessions. Paul

Re: Manage Sessions in Struts

2008-11-30 Thread Dave Newton
listener for this to detect expired sessions. I'm not sure that solves the problem of multiple session views in browsers that make new tabs/windows as non-new connections/sessions, though--I think those have to be handled with a sort of token mechanism. Dave

Re: Manage Sessions in Struts

2008-11-30 Thread Paul Benedict
Oh, my apologies. I thought the discussion revolved around preventing the same person from having multiple sessions. If you want to just prevent multiple views, you need to integrate Spring WebFlow. Paul On Sun, Nov 30, 2008 at 4:45 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sun, 11/30/08

Question about request/sessions

2008-09-18 Thread rageice
help. -- View this message in context: http://www.nabble.com/Question-about-request-sessions-tp19557410p19557410.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

multiple sessions created in struts 1.2.x on 404 new request... bug? [S1]

2008-08-20 Thread whizdom
! At the end of the requests, there are 2 sessions in existence. If I remove the sample Filter I've created, then Tomcat is able to attach the session information in the set-cookie cookie without a problem. I've attached the code so anyone interested can replicate the problem: http://www.nabble.com/file

How to get all sessions in one web application

2008-06-26 Thread Joey
Hi, Just want to know how to get all sessions. now, I used a listener to add ActionContext.getContext().getSession() to a list by myself, I just wondering maybe there is a struts API can get all sessions. Thanks. Joey

Re: How to get all sessions in one web application

2008-06-26 Thread Lukasz Lenart
Hi, The best option is to build your own session listener like that [1] and register it with web.xml [1] http://www.java2s.com/Code/Java/Servlets/Servletsessionlistener.htm Regards -- Lukasz http://www.lenart.org.pl/ - To

Re: How to get all sessions in one web application

2008-06-26 Thread Jorge Martín Cuervo
Hi Joey, i think this is not a struts issue. As far as i know, you can't access all sessions with servlet 2.3 compliant container (i don't know earlier versions) You can try to use session listeners to session store info in a common place or jmx solution. El jue, 26-06-2008 a las 18:53 +0800

Re: How to get all sessions in one web application

2008-06-26 Thread Wendy Smoak
On Thu, Jun 26, 2008 at 3:53 AM, Joey [EMAIL PROTECTED] wrote: Just want to know how to get all sessions. now, I used a listener to add ActionContext.getContext().getSession() to a list by myself, I just wondering maybe there is a struts API can get all sessions. AFAIK

Re: How to get all sessions in one web application

2008-06-26 Thread Joey
for example, in a application, a admin user maybe want to check all sessions on this application, just for this as I wrote in my first email, I am using a listener to add each session when a session created, but I am lazy', so just wondering maybe there is a better and easier way to get all

Re: How to get all sessions in one web application

2008-06-26 Thread Paweł Wielgus
Hi Joey, from a security point of view, this should be forbiden. But You may have a look at manager application from tomcat distribution, there is exactly such thing that counts and show all sessions in application. I've no idea how it's done there though, but most likely there are sources

Re: How to get all sessions in one web application

2008-06-26 Thread Nils-Helge Garli Hegvik
maybe want to check all sessions on this application, just for this as I wrote in my first email, I am using a listener to add each session when a session created, but I am lazy', so just wondering maybe there is a better and easier way to get all sessions. On Thu, Jun 26, 2008 at 7:08 PM

Re: Error replicating sessions with Struts 2 framework java application

2008-06-21 Thread Ildefonso Montero
Dear Laurie, thanks for your quick response, maybe I would rename this thread as: Does Struts 2 support clustering? (see linkhttp://mail-archives.apache.org/mod_mbox/struts-user/200804.mbox/[EMAIL PROTECTED] ) I have doubts about the replicacion of a SessionMap object on the quoted

Re: Error replicating sessions with Struts 2 framework java application

2008-06-21 Thread Dave Newton
PROTECTED] wrote: From: Ildefonso Montero [EMAIL PROTECTED] Subject: Re: Error replicating sessions with Struts 2 framework java application To: Struts Users Mailing List user@struts.apache.org Date: Saturday, June 21, 2008, 6:31 AM Dear Laurie, thanks for your quick response, maybe I would

Re: Error replicating sessions with Struts 2 framework java application

2008-06-21 Thread Al Sutton
Montero [EMAIL PROTECTED] wrote: From: Ildefonso Montero [EMAIL PROTECTED] Subject: Re: Error replicating sessions with Struts 2 framework java application To: Struts Users Mailing List user@struts.apache.org Date: Saturday, June 21, 2008, 6:31 AM Dear Laurie, thanks for your quick response

Re: Error replicating sessions with Struts 2 framework java application

2008-06-20 Thread Laurie Harper
Problems with Tomcat session replication are really a Tomcat issue, not a Struts issue. You will likely have more luck asking on the Tomcat user's list. You should include more details about how you configured Tomcat for session replication, too, since that seems likely to be where the problem

Error replicating sessions with Struts 2 framework java application

2008-06-19 Thread Ildefonso Montero
Hi, we are having a problem when balancing Tomcat session among to clusters. Architecture is the following: Apache (A) balancing 50-50 over Tomcat (1) and Tomcat (2). We are working on a big application and we saw that the session is not replicated properly because we are doing one request for

Re: Are sessions confused?

2008-06-06 Thread Julien ROTT
Hi Juan Pablo, did you find a solution to your problem ? I have the same: my application is on the internet, and the clients access to the application from behind a proxy. When client A logs in, and then a client B logs in, Client B sees the data which is stored in client A session. Is it

Re: Are sessions confused?

2008-06-06 Thread Juan Pablo Pizarro
Hi Julien, I had two problems, the first was my app, where the problem was hibernate. The other, on my pc at home, the struts-blank, I don't know (I abandoned that when I solved the problem of my app). In my application, I put response.setHeader(Cache-Control, no-cache);

Re: Are sessions confused?

2008-06-06 Thread Julien ROTT
this seems to work, the sessions aren't overlaping anymore. I'll test deeper on monday ;-) Thanks ! 2008/6/6 Juan Pablo Pizarro [EMAIL PROTECTED]: Hi Julien, I had two problems, the first was my app, where the problem was hibernate. The other, on my pc at home, the struts-blank, I don't

Re: Are sessions confused?

2008-06-06 Thread Juan Pablo Pizarro
You are welcome. Martin told me that. Regards, JP 2008/6/6, Julien ROTT [EMAIL PROTECTED]: this seems to work, the sessions aren't overlaping anymore. I'll test deeper on monday ;-) Thanks ! 2008/6/6 Juan Pablo Pizarro [EMAIL PROTECTED]: Hi Julien, I had two problems, the first

Re: [S2] Load Testing and number of sessions

2008-03-11 Thread Skip Hollowell
Figured I would follow up, as I hadn't heard anything from others. OpenSTA (http://www.opensta.org/) falls in to the category of 'Open Source Partial LoadRunner clone', and has been serving me well for most of the last two days. Any other recommendations? Skip Hollowell wrote: Hey all,

Re: [S2] Load Testing and number of sessions

2008-03-11 Thread Dave Newton
Same stuff I said last time. --- Dave Newton [EMAIL PROTECTED] wrote: Date: Fri, 7 Mar 2008 09:00:03 -0800 (PST) From: Dave Newton [EMAIL PROTECTED] Subject: Re: [S2] Load Testing and number of sessions To: Struts Users Mailing List user@struts.apache.org --- Skip Hollowell [EMAIL

[S2] Load Testing and number of sessions

2008-03-07 Thread Skip Hollowell
Hey all, It's getting pretty close to that magical time, production day. So I am starting to get a little anxious about what kind of limits my Struts 2 app will run up against. Is there any good way to determine what kind of user load I will start maxing out with? Is there an open source

Re: [S2] Load Testing and number of sessions

2008-03-07 Thread stanlick
This sounds as exciting as your first kiss! Have you looked at HttpUnit? On Fri, Mar 7, 2008 at 10:07 AM, Skip Hollowell [EMAIL PROTECTED] wrote: Hey all, It's getting pretty close to that magical time, production day. So I am starting to get a little anxious about what kind of limits my

Re: [S2] Load Testing and number of sessions

2008-03-07 Thread Dave Newton
--- Skip Hollowell [EMAIL PROTECTED] wrote: It's getting pretty close to that magical time, production day. So I am starting to get a little anxious about what kind of limits my Struts 2 app will run up against. Is there any good way to determine what kind of user load I will start

Struts2 Configutation alternative to sessions?

2007-11-06 Thread James Carr
Hi All, I'm using struts 2 for a small web app that has an action attribute that needs to maintain state. Currently I'm using sessions but I would like to reconfigure my application to use something besides sessions, perhaps something like viewState in .NET that would be availble via a hidden

Re: Struts2 Configutation alternative to sessions?

2007-11-06 Thread Dave Newton
--- James Carr wrote: Currently I'm using sessions but I would like to reconfigure my application to use something besides sessions, perhaps something like viewState in .NET that would be availble via a hidden input or get parameter. Why are you trying to avoid the session? I'm sure

Re: Struts2 Configutation alternative to sessions?

2007-11-06 Thread James Carr
Sessions aren't currently available on the server and I don't want to have to wait till the end of the week for my client to view the application. Thanks, James On Nov 6, 2007 12:11 PM, Dave Newton [EMAIL PROTECTED] wrote: --- James Carr wrote: Currently I'm using sessions but I would like

Re: Struts2 Configutation alternative to sessions?

2007-11-06 Thread Gary Affonso
James Carr wrote: Hi All, I'm using struts 2 for a small web app that has an action attribute that needs to maintain state. Currently I'm using sessions but I would like to reconfigure my application to use something besides sessions, perhaps something like viewState in .NET that would

[S2] Newbie question about HTTP Sessions

2007-03-08 Thread Roger Varley
Hi A couple of newbie questions. Firstly, does Struts2 automatically create an HTTP Session or do I need to explicitly create it. Early experimentation suggests that it's automatically created as I'm seeing the JSESSIONID parameter in the Urls generated without doing anything, but I'd like to be

Re: [S2] Newbie question about HTTP Sessions

2007-03-08 Thread Piero Sartini
Hello. A couple of newbie questions. Firstly, does Struts2 automatically create an HTTP Session or do I need to explicitly create it. Sessions are managed by the servlet-container. Struts does not need to create them. Early experimentation suggests that it's automatically created as I'm

Re: [S2] Newbie question about HTTP Sessions

2007-03-08 Thread Piero Sartini
Secondly I need to know when a session is ended. Is there an established Struts 2 practice for this or do I still create an HTTPSessionListener object and register it in web.xml as I would with a basic web-app. HTTPSessionListener? You can use --- code --- session-config

Re: [S2] Newbie question about HTTP Sessions

2007-03-08 Thread Roger Varley
Yes - you are right. The sessions are generated automatically by the container (tomcat, etc). Thanks. In a servlet based web-app I would create the session object programatticaly with httpServletRequest.getSession(true). I just wasn't sure if Struts 2 was creating the session for me since I

[OT] How to limit tomcat sessions

2006-08-02 Thread Pankaj Gupta
Hi All, I want to limit the number of user sessions to 25. Is it possible to do it directly through tomcat configurations? If yes, then are the sessions limitations per applications deployed or on the whole? regards, Pankaj

how many active sessions are in the system

2006-06-14 Thread Carl Smith
Is there anyway in J2EE to get how many active sessions are in the system? Thanks in advance. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: how many active sessions are in the system

2006-06-14 Thread Martin Gainty
Hey Carl- if you contextObject.getManager().getActiveSessions() you should be able to get the count of Active Sessions.. Anyone else Martin-- * This email message and any files transmitted with it contain confidential

sessions

2006-06-13 Thread Abhimanyu Koul
hi all! can anyone tell me which approach is better for session validation in a struts application creating a custom jsp tag and using it in jsp pages or using request processor/filters. and why?? Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090

Re: sessions

2006-06-13 Thread The Jasper
hi, I would suggest a filter. You won't have to tag each page that needs to be in session. mvg, Jasper On 6/13/06, Abhimanyu Koul [EMAIL PROTECTED] wrote: hi all! can anyone tell me which approach is better for session validation in a struts application creating a custom jsp tag and using

Re: sessions

2006-06-13 Thread Abhimanyu Koul
: Re: sessions hi, I would suggest a filter. You won't have to tag each page that needs to be in session. mvg, Jasper On 6/13/06, Abhimanyu Koul [EMAIL PROTECTED] wrote: hi all! can anyone tell me which approach is better for session validation in a struts application creating

Re: sessions

2006-06-12 Thread The Jasper
hi, You could use a login filter. Have the filter check if they are logged in via a session attribute. If the person is logged, then fine. Otherwise redirect to the login page. On logging in you set the session attribute. Now just set the web.xml so that everything has to go through the login

RE: sessions

2006-06-12 Thread Mukta
] Sent: Monday, June 12, 2006 3:16 PM To: Struts Mailing list Subject: sessions hi all! i want to use session validation in my application. no user should be allowed to view any page without logging in. if any user say copies the action from the properties window into the address bar of the browser

Re: sessions

2006-06-12 Thread basudeb . acharya
To Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED] cc Subject Re: sessions but the problem with that approach would be that i would have to write same code for every action or call the same method for each action. i want that it should be automatically done for each

Re: sessions

2006-06-12 Thread Thomas Joseph
[EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, June 12, 2006 3:25 PM Subject: Re: sessions hi, You could use a login filter. Have the filter check if they are logged in via a session attribute. If the person is logged, then fine. Otherwise redirect

Re: Handling invalid sessions

2005-10-17 Thread Aladin Alaily
Hi Jadeler, In response to your question about managing session objects, I would propose two methods: 1) Write a CustomRequestProcessor (which extends the struts RequestProcessor), and put your management code in there. As a struts programmer, you know that all requests *should* go

Re: Handling invalid sessions

2005-10-17 Thread Jadeler
Thanks for the suggestions. I'll try them out. Cheers, Jadeler --- Aladin Alaily [EMAIL PROTECTED] wrote: Hi Jadeler, In response to your question about managing session objects, I would propose two methods: 1) Write a CustomRequestProcessor (which extends the struts

Handling invalid sessions

2005-10-16 Thread Jadeler
What is the best way to handle invalid sessions (http sessions) within Struts? I need a way to determine when an object within a session no longer exists and redirect the user to an error page when that happens. I was thinking of implementing HttpSessionAttributeListener or a Servlet filter

Re: Handling invalid sessions

2005-10-16 Thread rajasekhar . cherukuri
To user@struts.apache.org cc Subject Handling invalid sessions What is the best way to handle invalid sessions (http sessions) within Struts? I need a way to determine when an object within a session no longer exists and redirect the user to an error page when that happens. I was thinking

Re: Handling invalid sessions

2005-10-16 Thread peru cheppanu
information in the session), then forward to a login page or failure page. Regards, Rajasekhar Cherukuri Jadeler 10/17/2005 09:57 AM Please respond to Struts Users Mailing List To user@struts.apache.org cc Subject Handling invalid sessions What is the best way to handle invalid sessions

Re: Handling invalid sessions

2005-10-16 Thread rajasekhar . cherukuri
, Rajasekhar Cherukuri peru cheppanu [EMAIL PROTECTED] 10/17/2005 10:26 AM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: Handling invalid sessions If we do that, then execute() method in child classes

Re: Struts action forms crossing sessions?Anyideawhythisishappening?

2005-10-12 Thread Andre Van Klaveren
and it's still happening. I did much tinkering and discovered that it's any object in session (so in this case the container object for the ArrayList that gets set to the form) that's crossing sessions and STICKING in session as well (as in I'll logout, shut down the browser, open

Re: Struts action forms crossing sessions? Anyideawhythisishappening?

2005-10-06 Thread Gareth Evans
to the form) that's crossing sessions and STICKING in session as well (as in I'll logout, shut down the browser, open up the browser and there it is again). So this has me wondering if it's related to hibernate, which we are using to populate this object. Preston [EMAIL PROTECTED] 10/4

Re: Struts action forms crossing sessions?Anyideawhythisishappening?

2005-10-06 Thread Preston CRAWFORD
PROTECTED] wrote: Well, a lot changed yesterday. I took all forms out of session and it's still happening. I did much tinkering and discovered that it's any object in session (so in this case the container object for the ArrayList that gets set to the form) that's crossing sessions

Re: Struts action forms crossing sessions? Anyideawhythisishappening?

2005-10-05 Thread Preston CRAWFORD
and it's still happening. I did much tinkering and discovered that it's any object in session (so in this case the container object for the ArrayList that gets set to the form) that's crossing sessions and STICKING in session as well (as in I'll logout, shut down the browser, open up the browser

Re: Struts action forms crossing sessions? Any idea whythisishappening?

2005-10-04 Thread Tamas Szabo
On 10/4/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: No. What information would be useful and relevant? Struts-config? The form bean itself? The action, the JSP? I didn't want to overload the list, obviously. In the following code how do you populate and set the myArrayList property of the

Re: Struts action forms crossing sessions? Any idea whythisishappening?

2005-10-04 Thread Leon Rosenberg
What's your container? I saw this behaviour on older resin implementations, it was obviously a bug, that in some sequence of requsts the session got mixed, B got A's session, but only for one request, after that it had it's own session. Try to log out the session id and the value of the jsessionid

Re: Struts action forms crossing sessions? Any ideawhythisishappening?

2005-10-04 Thread Preston CRAWFORD
Tomcat 5.0.28. [EMAIL PROTECTED] 10/4/2005 3:34:31 AM What's your container? I saw this behaviour on older resin implementations, it was obviously a bug, that in some sequence of requsts the session got mixed, B got A's session, but only for one request, after that it had it's own session. Try

Re: Struts action forms crossing sessions? Any ideawhythisishappening?

2005-10-04 Thread Preston CRAWFORD
Well, a lot changed yesterday. I took all forms out of session and it's still happening. I did much tinkering and discovered that it's any object in session (so in this case the container object for the ArrayList that gets set to the form) that's crossing sessions and STICKING in session as well

Re: Struts action forms crossing sessions? Any ideawhythisishappening?

2005-10-04 Thread Leon Rosenberg
On 10/4/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: Tomcat 5.0.28. this should work. However try logging out the sessionIds and compare them to the jsessionid cookies, just to be sure. Maybe you are also hit by the tomcat session bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=36541

Re: Struts action forms crossing sessions? Anyideawhythisishappening?

2005-10-04 Thread Preston CRAWFORD
objects don't persist between and across sessions. The object itself appears to be completely threadsafe on its own. I created an action where I instantiated an instance of one (outside of getting it from Hibernate), populated it with the list, dropped it into session, logged out, logged

Re: Struts action forms crossing sessions? Any ideawhythisishappening?

2005-10-04 Thread Tamas Szabo
for the ArrayList that gets set to the form) that's crossing sessions and STICKING in session as well (as in I'll logout, shut down the browser, open up the browser and there it is again). So this has me wondering if it's related to hibernate, which we are using to populate this object. Preston

Is session.setAttribute unique for all sessions?

2005-10-03 Thread 梁炳場
In an Action, an attribute is set by session.setAttribute(Privileges, userPrivileges); If another session logins and the same Action is called again, will the two sessions share the same attribute? Thanks - To unsubscribe, e

Re: Is session.setAttribute unique for all sessions?

2005-10-03 Thread 梁炳場
. From: ??? [mailto:[EMAIL PROTECTED] Sent: Mon 10/3/2005 1:32 PM To: Struts Users Mailing List Subject: Is session.setAttribute unique for all sessions? In an Action, an attribute is set by session.setAttribute(Privileges, userPrivileges); If another session logins and the same Action

RE: Is session.setAttribute unique for all sessions?

2005-10-03 Thread Murugesan, Kathiresan \(Cognizant\)
unique for all sessions? well, I just make use of session.setAttribute(), How will it become global variable? 2005/10/3, Murugesan, Kathiresan (Cognizant) [EMAIL PROTECTED]: it won't share until you have userPrivileges as global variable in your action class. Regards Kathir

Re: Struts action forms crossing sessions? Any idea why thisishappening?

2005-10-03 Thread Preston CRAWFORD
Sorry about the top-posting. I need to get GroupWise figured out so I can have it act like other email clients. Anyway, yes, I'm sure of this. There are no instance variables in our actions. I test my arraylist on my Form Bean to make sure it's not empty, then I iterate through it. So for

Re: Struts action forms crossing sessions? Any idea why thisishappening?

2005-10-03 Thread Preston CRAWFORD
Don't really have any instance variables in the actions. Just the logger and some static member fields brought in via an interface that aren't used for this example. Preston [EMAIL PROTECTED] 9/30/2005 7:52:29 PM If the ActionForms are truly in session scope then the shared state isn't in the

Re: Struts action forms crossing sessions? Any idea why thisishappening?

2005-10-03 Thread Dave Newton
Preston CRAWFORD wrote: Don't really have any instance variables in the actions. Just the logger and some static member fields brought in via an interface that aren't used for this example. Servlets? Filters? There's (essentially) zero way for a session-scoped data to get injected into

Re: Struts action forms crossing sessions? Any idea why thisishappening?

2005-10-03 Thread Kishore Senji
Is the myArrayList on the ActionForm that's causing the problem? If so, Assuming that other users make changes to that ArrayList when they change the state in their form, I would check and make sure that the myArrayList is not static or is not getting populated from a singleton source. On

Re: Struts action forms crossing sessions? Any idea whythisishappening?

2005-10-03 Thread Preston CRAWFORD
No. What information would be useful and relevant? Struts-config? The form bean itself? The action, the JSP? I didn't want to overload the list, obviously. Preston [EMAIL PROTECTED] 10/3/2005 9:40:37 AM Preston CRAWFORD wrote: Don't really have any instance variables in the actions. Just the

Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Preston CRAWFORD
We have a problem. We're working on an application and we have some forms in session scope. The strange thing is if someone changes state on their form, users on other computers on other browsers hitting the same exact page see the state change that was made to the form on another computer. I have

Re: Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Tamas Szabo
On 10/1/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: We have a problem. We're working on an application and we have some forms in session scope. The strange thing is if someone changes state on their form, users on other computers on other browsers hitting the same exact page see the state

Re: Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Gary VanMatre
On 10/1/05, Preston CRAWFORD wrote: We have a problem. We're working on an application and we have some forms in session scope. The strange thing is if someone changes state on their form, users on other computers on other browsers hitting the same exact page see the state change

Re: Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Andre Van Klaveren
If the ActionForms are truly in session scope then the shared state isn't in the ActionForm. It's probably a problem with instance variables in your Actions. On 9/30/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: We have a problem. We're working on an application and we have some forms in

A handle to Sessions in ServletContext?

2005-08-08 Thread Rick Reumann
I need to create a link to a servlet, that will invalidate all Sessions. I'm assuming there is some sort of Collection or Array of Sessions that is stored in the ServletContext? -- Rick - To unsubscribe, e-mail: [EMAIL

Re: A handle to Sessions in ServletContext?

2005-08-08 Thread Dave Newton
Rick Reumann wrote: I need to create a link to a servlet, that will invalidate all Sessions. I'm assuming there is some sort of Collection or Array of Sessions that is stored in the ServletContext? Hmm, I'm not sure that there is--I think I remember having to keep a context-scoped list

Re: A handle to Sessions in ServletContext?

2005-08-08 Thread Craig McClanahan
On 8/8/05, Dave Newton [EMAIL PROTECTED] wrote: Rick Reumann wrote: I need to create a link to a servlet, that will invalidate all Sessions. I'm assuming there is some sort of Collection or Array of Sessions that is stored in the ServletContext? Hmm, I'm not sure that there is--I think

Re: A handle to Sessions in ServletContext?

2005-08-08 Thread Rick Reumann
Craig McClanahan wrote the following on 8/8/2005 4:27 PM: Dave is right ... you would need to maintain your own list of currently active sessions (by writing an HttpSessionListener). To be thorough, you'd also want to make your listener implement HttpSessionActivationListener so it could deal

Struts and Sessions Problem

2005-06-29 Thread Peter . Zoche
Hello all! I have a problem with struts and sessions, perhaps someone has an idea: My web.xml contains the following welcome file list: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list My index.jsp only forwards like this: %@ taglib uri=/WEB-INF/struts-logic.tld

AW: Struts and Sessions Problem

2005-06-29 Thread Peter . Zoche
is not null! Peter -Ursprüngliche Nachricht- Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 29. Juni 2005 18:16 An: Struts Users Mailing List Betreff: Re: Struts and Sessions Problem Hmm, I don't see how the session can be null. If you start from JSP, and you did not set

RE: Struts and Sessions Problem

2005-06-29 Thread Scott Piker
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 29, 2005 12:04 PM To: user@struts.apache.org Subject: Struts and Sessions Problem Hello all! I have a problem with struts and sessions, perhaps someone has an idea: My web.xml contains

Re: Struts and Sessions Problem

2005-06-29 Thread Ed Griebel
PROTECTED] Gesendet: Mittwoch, 29. Juni 2005 18:16 An: Struts Users Mailing List Betreff: Re: Struts and Sessions Problem Hmm, I don't see how the session can be null. If you start from JSP, and you did not set session=false in the page directive, then to my understanding, session should

  1   2   >