Announcement Announcement Module
Collapse
No announcement yet.
how to use validators with MultiActionController Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to use validators with MultiActionController

    1. I am using MultiActionControllers. Please suggest how can I use the functionality of Validator to process my forms

    2. While using the MultiActionControllers is it possible to redirect the success view from the "myApp-servlet.xml" rather than hard coding in the controller code.

    thanks in advance

    Rahul

  • #2
    Use simple form controller

    When working with forms (POST requests) it's usually better if you instead use SimpleFormController and MultiActionControllers for querying (or GET requests). SimpleFormController has inherited setValidator and setValidators methods that you can use to inject validators.

    Yes you can redirect to a view configured in *-servlet.xml file.

    Comment


    • #3
      how will it work with MultiActionController

      I agree, but its my application requirement to use the MultiActionController,
      please suggest something about using validators with MultiActionController

      Comment


      • #4
        Re: how will it work with MultiActionController

        Originally posted by rahul_maggu
        I agree, but its my application requirement to use the MultiActionController,
        please suggest something about using validators with MultiActionController

        Comment

        Working...
        X