Announcement Announcement Module
Collapse
No announcement yet.
MultiActionController and Validation using Validator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MultiActionController and Validation using Validator

    Hi

    i am using a MultiActionController to submit a form


    eg
    <CODE>
    public class MyController extends MultiActionController
    {
    public ModelAndView createMyRecord(HttpServletRequest req,HttpServletResponse res,MyDTO command)
    {

    // after validation

    //submit the data to DB

    return new ModelAndView("result","myDTO",command);

    }


    and i have created a validator


    public class MyValidator implements Validator{

    -- added validate(obj...Error error)

    }





    </CODE>



    How can i call the validate method before createMyRecord is called ?
Working...
X