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?
-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!)