-
Aug 25th, 2008, 12:47 AM
#1
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 ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules