Announcement Announcement Module
No announcement yet.
Multiple Forms On The Same Page Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple Forms On The Same Page

    Hi All,

    I was wondering if it was possible to have multiple forms on the same page and if so, how to accomplish this. In my case the two forms are unrelated and have different command objects and controllers. For example, a home page that has a login form (using acegi) and a registration form (using a User form object and a SimpleFormController) .

    Any help would be much appreciated,

  • #2
    This has been mentioned before, maybe this will help:

    The trick is to get either an instance of Errors wrapping for each command bean that is backing each form, or the command bean itself into the Model (or request). The <spring:bind> tags require either one to exist to work (the tags prefer the Errors instance, but the plain command will do).