Announcement Announcement Module
No announcement yet.
How to handle 2 forms on the page Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to handle 2 forms on the page


    I have a page with 2 forms: one of them has a text area and submit button and another - an input text, text area and submit button. So I have to submit _only_ text area in the former and input text and text area in the latter.

    If I'm not mistaken, the AbstractFormController works with only one form. Any suggestion on how to implement this requirement?

  • #2
    I guess it depends on wether you have two form objects or not. If you have two form objects you have to have to controllers as well.

    However, it's no problem to submit to two different controllers from the same jsp. Just specify the controller url in the action attribute of the form.