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

concurrent access problem in tomcat

 
Inesh Hettiarachchi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone
im having a problem when running servlets in tomcat my application use servlets for processing and jsp for displaying i use requestdispatcher from the servlet to call the jsp and other servlets the issue comes when there is two people using the application the jsps get switched asothing like
A user gets B users screen with the values and i cant figure out the problem
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is nothing to do with Tomcat. This is due the problem in user Management. How do you identfy users at Server side?
 
Inesh Hettiarachchi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well the first servlet runs a validation program then give access to other servlets it dosent happen in other servlets
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make your user validation program thread safe. May be a simple method needs to be synchronised which identifies the valid user and his/her pages.

Any othe ideas?
Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic