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 -

RE: AJAX & Sessions

2011-01-28 Thread Biesbrock, Kevin
: Re: AJAX & Sessions Here's a couple of the ways I handle it: ingredients 401 500 factors 401 500 Then on the JavaScript side you need to check the xmlHttpRequest.status field to see

Re: AJAX & Sessions

2011-01-27 Thread Steven Yang
> >> -Original Message- > >> From: 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 r

Re: AJAX & Sessions

2011-01-27 Thread Chris Pratt
e clearing the screen and > > sending the user to the LOGIN page without putting the LOGIN page in > > that DIV? > > > > I really want to implement AJAX/JSON stuff properly in this application > > properly. > > > >> -Original Message- > >>

Re: AJAX & Sessions

2011-01-27 Thread Dave Newton
Original Message- >> From: 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 time

RE: AJAX & Sessions

2011-01-27 Thread CRANFORD, CHRIS
essage- > From: 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: CRANFOR

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,

AJAX & Sessions

2011-01-27 Thread CRANFORD, CHRIS
set; the time of last request isn't 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

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] http://java.sun.com/j2ee/sdk_1.3/t

[S2] Iterate over sessions

2010-01-12 Thread Gustavo Felisberto
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 a

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: R

Re: Manage Sessions in Struts

2008-12-01 Thread Paul Benedict
eł 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
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 befor

Re: Manage Sessions in Struts

2008-12-01 Thread Paweł Wielgus
w tab, 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 ses

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 S

Re: Manage Sessions in Struts

2008-11-30 Thread Dave Newton
want > to use a session 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 wi

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.

Re: Manage Sessions in Struts

2008-11-30 Thread Dan
er 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 multiple browsers (just one session available per user). I have read that if browser window is cloned (suc

Re: Manage Sessions in Struts

2008-11-30 Thread Stewart Buskirk
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

Re: Manage Sessions in Struts

2008-11-30 Thread stanlick
thing 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 multiple browsers (just one session available p

Re: Manage Sessions in Struts

2008-11-30 Thread Paweł Wielgus
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. A

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

Question about request/sessions

2008-09-18 Thread rageice
Thanks in advance for any 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 unsubsc

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

2008-08-20 Thread whizdom
t 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 proble

Re: How to get all sessions in one web application

2008-06-26 Thread Nils-Helge Garli Hegvik
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 sessions. On Thu, Jun 26, 2008

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 sour

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 ge

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.

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 1

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 uns

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 - To

Re: Error replicating sessions with Struts 2 framework java application

2008-06-21 Thread Al Sutton
ave --- On Sat, 6/21/08, Ildefonso 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" Date: Saturday, June 21, 2008, 6:31 AM De

Re: Error replicating sessions with Struts 2 framework java application

2008-06-21 Thread Dave Newton
ro <[EMAIL PROTECTED]> wrote: > From: Ildefonso Montero <[EMAIL PROTECTED]> > Subject: Re: Error replicating sessions with Struts 2 framework java > application > To: "Struts Users Mailing List" > Date: Saturday, June 21, 2008, 6:31 AM > Dear Laurie, > &

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 link ) I have doubts about the replicacion of a SessionMap object on the quoted architectur

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 ea

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]>

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

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
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 i

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 > > --- Skip Hollo

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, It'

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

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 limit

[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 l

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 tha

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

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 ses

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 vi

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 si

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

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 automat

[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: [OT] How to limit tomcat sessions

2006-08-02 Thread Tamas Szabo
Hi, not sure if you can do it in Tomcat, but you can surely do it with the SessionLimiterFilter from Java Web Parts: http://javawebparts.sourceforge.net/ It limits sessions per application and it isn't Tomcat specific. Hope it helps, Tamas On 8/2/06, Pankaj Gupta <[EMAIL P

[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

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

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: sessions

2006-06-13 Thread Dave Newton
Abhimanyu Koul wrote: > are there any benefits of using custom tags over filters. > If you don't like your page designer it makes them type more, or if you like repeating yourself. I like the filter solution the best because the session attribute lookup is handled in one place only and it's no

Re: sessions

2006-06-13 Thread Abhimanyu Koul
are there any benefits of using custom tags over filters. Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090 - Original Message - From: "The Jasper" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, June 13, 2006 4:4

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

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-12 Thread Thomas Joseph
asper" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" 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.

Re: sessions

2006-06-12 Thread basudeb . acharya
" To "Struts Users Mailing List" , <[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 ea

Re: sessions

2006-06-12 Thread Gareth Evans
lutions (P) Ltd. Mobile : +91 9819510090 - Original Message - From: "Mukta" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Monday, June 12, 2006 3:28 PM Subject: RE: sessions If you have some session attributes in your application,

Re: sessions

2006-06-12 Thread Abhimanyu Koul
gards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090 - Original Message - From: "Mukta" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Monday, June 12, 2006 3:28 PM Subject: RE: sessions > If you have some session att

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 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 fil

sessions

2006-06-12 Thread Abhimanyu Koul
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, he should be directed to the login page. no error message should be shown n

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 > Re

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 through

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" To Struts Users Mailing List cc Subject Re: Handling invalid sessions If we do that, then execute() method in child classes will override Base

Re: Handling invalid sessions

2005-10-16 Thread peru cheppanu
there is NO required 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

Re: Handling invalid sessions

2005-10-16 Thread rajasekhar . cherukuri
Users Mailing List" 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 w

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: Struts action forms crossing sessions?Anyideawhythisishappening?

2005-10-12 Thread Andre Van Klaveren
point > > when it does work. > > > > Tamas > > > > On 10/4/05, Preston CRAWFORD <[EMAIL PROTECTED]> wrote: > > > >>Well, a lot changed yesterday. I took all forms out of session and > > > > it's > > > >>still h

Re: Struts action forms crossing sessions?Anyideawhythisishappening?

2005-10-06 Thread Preston CRAWFORD
sterday. 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 sessio

Re: Struts action forms crossing sessions? Anyideawhythisishappening?

2005-10-06 Thread Gareth Evans
sion (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 and there it is again). So this has me wondering if it's related to h

Re: Struts action forms crossing sessions? Anyideawhythisishappening?

2005-10-05 Thread Preston CRAWFORD
gt; 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 cross

Re: Struts action forms crossing sessions? Any ideawhythisishappening?

2005-10-04 Thread Tamas Szabo
> 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 and there it is again). So this has me wondering if

Re: Struts action forms crossing sessions? Anyideawhythisishappening?

2005-10-04 Thread Preston CRAWFORD
ke sure that session 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, log

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? 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

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.

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 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 o

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. Jus

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 10/3

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 so

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 i

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 exampl

RE: Is session.setAttribute unique for all sessions?

2005-10-03 Thread Murugesan, Kathiresan \(Cognizant\)
List Subject: Re: Is session.setAttribute 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 globa

Re: Is session.setAttribute unique for all sessions?

2005-10-03 Thread 梁炳場
on class. > > Regards > Kathir. > > > > 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 >

RE: Is session.setAttribute unique for all sessions?

2005-10-03 Thread Murugesan, Kathiresan \(Cognizant\)
it won't share until you have "userPrivileges" as global variable in your action class. Regards Kathir. From: ??? [mailto:[EMAIL PROTECTED] Sent: Mon 10/3/2005 1:32 PM To: Struts Users Mailing List Subject: Is session.setAttribute unique f

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 unsu

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 s

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 stat

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 s

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

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

  1   2   >