Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

data mixup for two responses

 
Balaji Kadam
Ranch Hand
Posts: 31
Hibernate Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hope you are not having instance variables in your servlet and only using local variables
 
Balaji Kadam
Ranch Hand
Posts: 31
Hibernate Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic