Nov 23rd, 2005, 09:13 AM
Multiple Forms On The Same Page
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,
Nov 24th, 2005, 12:40 AM
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).