Ans.
Generally, the scope of a formhandler should be request, because each form submission should be a separate request. We dont want the form values to be replaced in a session, or globally by any user.
In some cases session-scoped formhandlers can also be used in multi-page forms. However, it is not a good approach, and there are other ways to handle it (with each submission, data can be stored in session or repository based on scenario)
Asked By: Sapient
No comments:
Post a Comment