--- 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
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
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
--- 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,
--- 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 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
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
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
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
> > >
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
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
: 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
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
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
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
--- 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
; 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
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
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
"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
"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
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
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
"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
---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
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
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
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
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
> >
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
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
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
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
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
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
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
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
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
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
>
> -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
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
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
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
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]>
44 matches
Mail list logo