Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Usebean

 
Suresh KumarPandey
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose i am using useBean in one of the jsp to check for the user registration. suppose the url which is hit is simultaneously used by 4 users and suppose object type created i.e. ID is person .When the last user enters the details and submits the details a person has just submitted ,that is person id already created , then how the useBean will work in this scenario.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35762
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set the scope for a bean to session. Then each user has a separate object.

Do note that useBean is an old practice that is not considered a good way to write code. Read about MVC for what to do instead
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!