This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creation of form bean instance  RSS feed

 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
When is the form bean instance created and is it created just once or always when the data is populated to the form bean.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have your action mapping configured to use request scope then a new instance of your action form will be created for each request. If your action mapping is configured to use session scope (the default) then an instance will be created, stored on the session, and reused between requests. In either case, every user would have their own instance.

- Brent
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!