aspose file tools*
The moose likes Struts and the fly likes custom validators Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "custom validators " Watch "custom validators " New topic
Author

custom validators

Web 4.0
Greenhorn

Joined: Sep 15, 2007
Posts: 1
I created a custom validator from for all the fields in the page

where should i specify the path so that the validation gets done


thanq
Bigwood Liu
Ranch Hand

Joined: Feb 26, 2003
Posts: 240
put the [ActionClassName]-validation.xml in the package where you put your action class, then in struts.xml, let your package extends strut-default. All the input value will pass through the validation intercepter, and so is the validation done. For more information, please refer to http://struts.apache.org/2.x/docs/validation.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom validators
 
Similar Threads
IFrame inside a window
Dynamic Connection Pool
How to Uncheck the checkbox
how to cast JSF SelectItem back to original type?
Default value for body-content inside tld