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

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 in correcting the basic
structure or approach.
or refer any URL which suits to solve my issue.

please help me




Kawczynski, David wrote:
> 
> 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 Message-
> From: MyAshok [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 09, 2008 4:07 PM
> To: user@struts.apache.org
> Subject: Session problem unidentified
> 
> 
> Hi all,
> 
> I got a critical problem.
> My Application Environment - Struts 2 Application, Spring injection for
> dao, 
> Hiberanate3
> 
> Scenerio
> 
> 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, this row is updated to the table
> for
> the existing user( which was selected by userB)
> 
> I cant find where i went wrong.
> I can guess that there is a problem with session management.
> I cant find whether the problem with the HibernateSession or
> HttpSession.
> 
> Can u please give me solutions.
> 
> Waiting for the helpful solution with hope.
> With Regards,
> Ashok
> -- 
> View this message in context:
> http://www.nabble.com/Session-problem-unidentified-tp19906321p19906321.h
> tml
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Session-problem-unidentified-tp19906321p20139739.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 Message-
From: MyAshok [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2008 4:07 PM
To: user@struts.apache.org
Subject: Session problem unidentified


Hi all,

I got a critical problem.
My Application Environment - Struts 2 Application, Spring injection for
dao, 
Hiberanate3

Scenerio

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, this row is updated to the table
for
the existing user( which was selected by userB)

I cant find where i went wrong.
I can guess that there is a problem with session management.
I cant find whether the problem with the HibernateSession or
HttpSession.

Can u please give me solutions.

Waiting for the helpful solution with hope.
With Regards,
Ashok
-- 
View this message in context:
http://www.nabble.com/Session-problem-unidentified-tp19906321p19906321.h
tml
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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, this row is updated to
> the table for the existing user( which was selected by userB)

It's unclear to me what the problem is. Is it that the actions are editing the 
same instance? Or that you're not doing any sort of locking on the table? Or...?

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]