VERY URGENT!! concurrence problem with struts
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   gabriela_garcia
Posted On:   Tuesday, October 22, 2002 08:55 AM

We are working with Struts and JRun 3.1. We have a form that populates another form. Both of the forms invoke the same Action and ActionForm. We have the following problem: If there are two users introducing data at the same time and they click the submit button at exactly the same time the both receive the same values (those of the user who cliked the button last). The actionForm objects are correctly instantiated, each with a different id and with its own values. But after validating the data in the ActionForm, when we retrieve the ActionForm objects in the Action we see that both objects remain the same but with those values introduced by the second user. Does anybody know why this could be happening?    More>>


We are working with Struts and JRun 3.1.

We have a form that populates another form. Both of the forms invoke the same Action and ActionForm. We have the following problem:

If there are two users introducing data at the same time and they click the submit button at exactly the same time the both receive the same values (those of the user who cliked the button last).

The actionForm objects are correctly instantiated, each with a different id and with its own values. But after validating the data in the ActionForm, when we retrieve the ActionForm objects in the Action we see that both objects remain the same but with those values introduced by the second user.

Does anybody know why this could be happening?

Thank you very much

   <<Less

Re: VERY URGENT!! concurrence problem with struts

Posted By:   Brian_Kapellusch  
Posted On:   Tuesday, October 22, 2002 11:12 AM

Are you overriding the reset method of the ActionForms correctly? If you aren't overriding them at all, you're going to have these kinds of problems.
About | Sitemap | Contact