This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Struts and the fly likes Validations in Form/Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validations in Form/Action" Watch "Validations in Form/Action" New topic
Author

Validations in Form/Action

M Mehta
Ranch Hand

Joined: Aug 03, 2006
Posts: 92
In struts we can do the front end validations in the form by implementing the validate method of ValidatorForm, or the same validations can be put in the Action by creating new ActionMessages and populating the same with error messages to be shown.

can anyone tell me which is the preferred way?

Thanks,
M
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validations in Form/Action
 
It's not a secret anymore!