• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creation of form bean instance

 
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