RE: Session problem unidentified

2008-10-23 Thread Dave Newton
--- On Thu, 10/23/08, MyAshok wrote: > Inside my action method the User object is populated via autowiring. Have you read the Spring documentation? This seems more a Spring issue than Struts, really. I used Google and searched for "spring 2.0 session scope" and the hits seemed relevant to your

RE: Session problem unidentified

2008-10-23 Thread MyAshok
Hi all, Sorry for the late reply. Inside my action method the User object is populated via autowiring. Dao object is being injected as bean using spring. i dont know how to set scope for the bean. please help me in using the bean with scope. If i did anything wrong in my approach, please help

RE: Session problem unidentified

2008-10-10 Thread Kawczynski, David
How does your action class get populated with a User object (or whatever it is that is saved incorrectly)? Does Spring have any role in the creation of that object? If so, what scope is that bean defined? What's the value of the key for this object when it is saved incorrectly? -Original M

Re: Session problem unidentified

2008-10-09 Thread Dave Newton
--- On Thu, 10/9/08, MyAshok wrote: > 1) When user A logged in and add a new user x (which sets > the selectedUser (gettersettervariable) to Null). > 2) At the same time, user B logged in and edit a existing > user (which sets the selectedUser to some value). > 3) Now, the user A save the entries,

Re: Session problem

2007-08-28 Thread Dave Newton
--- Mark Rollins <[EMAIL PROTECTED]> wrote: > I just haven't got round to finding out what I need > to do to Struts to get it to inject into an Action > class, yet. Set the object factory as Spring, provide a setter in the action class, and name the Spring bean the same name as the setter, so I

Re: Session problem

2007-08-28 Thread Mark Rollins
Re Spring IOC, I agree. The back end of the application operates using IOC, I just haven't got round to finding out what I need to do to Struts to get it to inject into an Action class, yet. Anyway, I have got to the bottom of the problem which was that despite earlier assurances, I hadn't config

Re: Session problem

2007-08-27 Thread Dave Newton
I would reduce your problem to a simple class that does nothing but access only the HttpSession and see if the problem still exists, then build up around that until something blows up. I would also consider using Spring's DI/IoC to inject a user service object (generally not the same class as a us

Re: Session problem

2007-08-27 Thread Mark Rollins
I'm actually using two different browsers, IE and Firefox, as I thought this would guarantee me two separate sessions. How are you starting a new browser from this *same* machine? If you are pressing Ctrl-N New Window, this is your problem! This will appear to be two browsers, when actually i

Re: Session problem

2007-08-27 Thread stanlick
tead of this.session = map; > > > > > > -Rod > > > > > > > > > -Original Message----- > > > From: Mark Rollins [mailto:[EMAIL PROTECTED] > > > Sent: Saturday, August 25, 2007 05:47 > > > To: user@struts.apache.org > > >

Re: Session problem

2007-08-26 Thread Pavel Sapozhnikov
ue but I do see a typo in setSession()... > > > > It should be: this.session = session; instead of this.session = map; > > > > -Rod > > > > > > -Original Message- > > From: Mark Rollins [mailto:[EMAIL PROTECTED] > > Sent: Satur

RE: Session problem

2007-08-26 Thread Mark Rollins
l Message- > From: Mark Rollins [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 25, 2007 05:47 > To: user@struts.apache.org > Subject: Re: Session problem > > > > This is my first Struts app, so it's quite simplistic. What I'm trying to > achieve is to

RE: Session problem

2007-08-25 Thread Rod Bollinger
: Session problem This is my first Struts app, so it's quite simplistic. What I'm trying to achieve is to lock down certain processes so that only one user can run them at a time. I intended to do this by having an application variable holding the User object for the user currently r

Re: Session problem

2007-08-25 Thread Mark Rollins
This is my first Struts app, so it's quite simplistic. What I'm trying to achieve is to lock down certain precesses so that only one user can run them at a time. I intended to do this by having an application variable holding the User object for the user currently running the process and examinin

Re: Session problem

2007-08-24 Thread Laurie Harper
You have some cross-talk somewhere in your code, by the sound of it. Take a look at any code that touches the session; you probably have something somewhere that's at the wrong scope (in application scope when it should be session/request, a Spring bean accidentally configured as singleton scop

Re: Session problem

2007-08-24 Thread MARollins
I am running everything from one machine, but access the app from different browsers in order to get different sessions (ie IE and Firefox). I have tried the second user from another machine and it didn't make any difference. The app also uses Spring, but I have configured this to give me a new u

Re: Session problem

2007-08-24 Thread Dave Newton
--- MARollins <[EMAIL PROTECTED]> wrote: > I'm having a problem whereby objects saved on the > Session are visible to other sessions. > > For example, the login page saves a new User object > on the session using session.put (I have a base class > for all my Actions which implements SessionAware

RE: Session problem

2005-12-07 Thread Max Cooper
; Sent: Wednesday, December 07, 2005 11:34 AM > To: Struts Users Mailing List > Subject: Re: Session problem > > Baker, Russ A wrote: > > >A session is created by virtue of them just getting to the login page. > >If the user logs in successfully to the system they now have

RE: Session problem

2005-12-07 Thread Baker, Russ A
So then where is that straggler session coming from? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 11:34 AM To: Struts Users Mailing List Subject: Re: Session problem Baker, Russ A wrote: >A session is created by virtue of them j

Re: Session problem

2005-12-07 Thread Dave Newton
Baker, Russ A wrote: A session is created by virtue of them just getting to the login page. If the user logs in successfully to the system they now have 2 sessions instead the desired result having only one that is assigned to them when they successful login. That is a waste of memory! Two se

RE: Re: Session problem

2005-12-07 Thread gramani
"James Harig" <[EMAIL PROTECTED]> wrote on 12/07/2005 12:50:06 PM: > >> > >> To facilitate these items, you will need some method of informing > >> your webapplication that the server is going to be shutdown. One > >> way to do this would be to set a flag in the application context; > >> ano

RE: Re: Session problem

2005-12-07 Thread gramani
"James Harig" <[EMAIL PROTECTED]> wrote on 12/07/2005 12:50:06 PM: > >> > >> To facilitate these items, you will need some method of informing > >> your webapplication that the server is going to be shutdown. One > >> way to do this would be to set a flag in the application context; > >> ano

RE: Re: Session problem

2005-12-07 Thread James Harig
to stop the shutdown process once it starts. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 12:40 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: RE: Re: Session problem "James Harig" <[EMA

RE: Re: Session problem

2005-12-07 Thread Frank W. Zammetti
essions that are >>being handed out by Struts. > > It sounds like you need to implement the concept of "LoginSession", to > count the number of users that are logged in. > > > > > -Original Message- > From: Baker, Russ A [mailto:[EMAIL PROTECTE

RE: Re: Session problem

2005-12-07 Thread gramani
"James Harig" <[EMAIL PROTECTED]> wrote on 12/07/2005 11:53:15 AM: > > To facilitate these items, you will need some method of informing > your webapplication that the server is going to be shutdown. One > way to do this would be to set a flag in the application context; > another way is to

RE: Re: Session problem

2005-12-07 Thread James Harig
---Original Message- From: Baker, Russ A [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 12:10 PM To: Struts Users Mailing List Subject: RE: Re: Session problem No, sorry if I was being vague. I don't want Struts to create a session simply by accessing an action; I want to c

RE: Re: Session problem

2005-12-07 Thread Baker, Russ A
out. So I don't know if a person is still logged in, or if it is those extra sessions that are being handed out by Struts. Capiche? -Original Message- From: James Harig [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 9:53 AM To: Struts Users Mailing List Subject: RE: Re

RE: Session problem

2005-12-07 Thread Baker, Russ A
possibly creating a session and putting the default locale in it? -Original Message- From: Ed Griebel [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 8:22 AM To: Struts Users Mailing List Subject: Re: Session problem One second is much too short as most users won't be ab

RE: Re: Session problem

2005-12-07 Thread James Harig
ilto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 10:09 AM To: Struts Users Mailing List Subject: Re: Re: Session problem The key is to not put anything in your session. Actions are the obvious place to look for things being stuffed into the session (via request.getSession().get/setAttribu

Re: Session problem

2005-12-07 Thread Ed Griebel
ve open sessions, they can complete what they are doing. The other > >alternative is to force shutdown, but I am afraid I will make enemies if > >I do that... > > > >-Original Message- > >From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper > >

Re: Re: Session problem

2005-12-07 Thread Ed Griebel
Tuesday, December 06, 2005 3:53 PM > To: user@struts.apache.org > Subject: Re: Session problem > > Baker, Russ A wrote: > > Hello, > > > > I am trying to figure out how to stop Struts from creating a session. > > What seems to happen is that once I call an action, a

Re: Session problem

2005-12-06 Thread Yujun Liang
The session is not created by Struts, it is the behaviour of web (servlet) container. http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession.html http://e-docs.bea.com/wls/docs81/servlet/progtasks.html#159622 However, you can configure Session Persistence with WebLogic Server

Re: Session problem

2005-12-06 Thread Ross Gibb
cember 06, 2005 3:53 PM To: user@struts.apache.org Subject: Re: Session problem Baker, Russ A wrote: Hello, I am trying to figure out how to stop Struts from creating a session. What seems to happen is that once I call an action, a session is created. This is a problem because when I want to

RE: Re: Session problem

2005-12-06 Thread Baker, Russ A
TECTED] On Behalf Of Laurie Harper Sent: Tuesday, December 06, 2005 3:53 PM To: user@struts.apache.org Subject: Re: Session problem Baker, Russ A wrote: > Hello, > > I am trying to figure out how to stop Struts from creating a session. > What seems to happen is that once I call a

Re: Session problem

2005-12-06 Thread Laurie Harper
Baker, Russ A wrote: Hello, I am trying to figure out how to stop Struts from creating a session. What seems to happen is that once I call an action, a session is created. This is a problem because when I want to gracefully shut down my server, it complains that I still have an active session. I

Re: Session problem

2005-12-06 Thread Ross Gibb
What server are you using? Baker, Russ A wrote: Hello, I am trying to figure out how to stop Struts from creating a session. What seems to happen is that once I call an action, a session is created. This is a problem because when I want to gracefully shut down my server, it complains that I

Re: Session-Problem

2005-05-24 Thread Viktar Duzh
hould help. Regards, -- Viktar - Original Message - From: "Jorge Chacón Souto" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 24, 2005 9:56 AM Subject: Re: Session-Problem Hello, I have the same problem some days ago. I found two sol

Re: Session-Problem

2005-05-23 Thread Jorge Chacón Souto
Hello, I have the same problem some days ago. I found two solutions: using https(SSL) in the web server (if SSL really fits to your application security requirements), since SSL web pages are not cached, or telling the browser to don't cache the JSP page, so when the user clicks the back but

Re: session-problem

2005-05-17 Thread Hubert Rabago
When you switch from "session" to "request", do you remember to change the scope where you set the form in your action class? What I mean is, in your action class, you should also change session.setAttribute("exForm", exForm); to request.setAttribute("exForm", exForm); Hubert On 5/16/05, Mo

Re: session-problem

2005-05-16 Thread Rick Reumann
Mohan wrote the following on 5/16/2005 3:37 AM: I am retriving the values from Database and I am setting it using the set method. But if I keep the form bean scope in session,It is showing the value in the text box.If I keep the form bean scope in the request it is not showing the value. Could you

Re: session problem

2004-06-11 Thread Shailender Jain
> > -Original Message- > From: nikhil walvekar [mailto:[EMAIL PROTECTED] > Sent: Friday, 11 June 2004 17:34 > To: Struts Users Mailing List > Subject: Re: session problem > > Hi, > same thing i have experienced with IE 6.0, it will work with mozilla > Problem is

RE: session problem

2004-06-11 Thread Andrew Hill
j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServle tResponse.html] -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: Friday, 11 June 2004 17:51 To: Struts Users Mailing List Subject: Re: session problem Thanks Andrew for the response. Should i just put in al

Re: session problem

2004-06-11 Thread Shailender Jain
nikhil walvekar [mailto:[EMAIL PROTECTED] > Sent: Friday, 11 June 2004 17:34 > To: Struts Users Mailing List > Subject: Re: session problem > > Hi, > same thing i have experienced with IE 6.0, it will work with mozilla > Problem is that with each request session id is not pa

RE: session problem

2004-06-11 Thread Andrew Hill
will support users when they have cookies disabled). -Original Message- From: nikhil walvekar [mailto:[EMAIL PROTECTED] Sent: Friday, 11 June 2004 17:34 To: Struts Users Mailing List Subject: Re: session problem Hi, same thing i have experienced with IE 6.0, it will work with mozilla

Re: session problem

2004-06-11 Thread nikhil walvekar
Hi, same thing i have experienced with IE 6.0, it will work with mozilla Problem is that with each request session id is not passed. You need to explicitly pass it as url parameter. http://dbomis.com/anyLink;jsessionid=A0698B81A1F1AA2B1ECDA19B0ACFD6E2 Nikhil Shailender Jain <[EMAIL PROTECTED]>