Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to handle multiple requests in struts?

 
Anuj Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
Here is a scenario:
Suppose at the home page of an application,two users A&B enter their respective User Ids as A&B and click submit simultaneously.How will the request be handled?
With whose value will the formBean be populated?If somewhere in execute method we call the formBean's get() method,
then whose value will the method return?A's user id or B's?I mean how does struts handle multiple simultaneous requests?

Thanks
Anuj
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each user has their own form bean, either in their session or request.
 
Anuj Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
either in their session or request.


Default would be request or session scope for each user as he/she logs in?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic