| Author |
data mixup for two responses
|
Balaji Kadam
Ranch Hand
Joined: Apr 27, 2010
Posts: 31
|
|
hi all,
In my one of application a jsp invokes a sevlet do some calculations and saves data to db and at last redirect to same jsp from where request come from. flow is as simple as i explained but problem is that when two different client users click submit button then after servlet jsp page shows mixed data means user 1 gets data of user 2 not all page data but some textboxes.
where should be problem?
problem detail:
-mixing fields data stored in database in xml format at runtime it parses and assigns to particular field.
-i cant use ajax instead of servlet submit because there are lots of parameters which servlet requires.
-i have used synchronization in servlet and jsp. (don't know where it was required or not just tested!)
Thanks
Balaji
|
 |
joy b chakravarty
Ranch Hand
Joined: May 16, 2011
Posts: 62
|
|
|
hope you are not having instance variables in your servlet and only using local variables
|
Cheers, Joy [SCJP 1.4, SCBCD 5.0]
get high on alcohol, algorithm or both
|
 |
Balaji Kadam
Ranch Hand
Joined: Apr 27, 2010
Posts: 31
|
|
hello joy,
i have not any instance variable in servlet. and data saves properly in database but jsp retrieves/ shows data from other user.
-Balaji
|
 |
 |
|
|
subject: data mixup for two responses
|
|
|