aspose file tools
The moose likes Struts and the fly likes Custom validation using validation framework... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Custom validation using validation framework..." Watch "Custom validation using validation framework..." New topic
Author

Custom validation using validation framework...

gopal kishan
Ranch Hand

Joined: Feb 23, 2005
Posts: 99
Hi All,

I want to create a custom validation and i want to add this validation to validation-rules.xml.

I want to know about the return type.. can i return String, int,anyother or it should be boolean only.

please clarify

thanks in advance
Gopal
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4725

Validation answers the question "Is this valid?"

It expects boolean. It does no good to pass anything else back to the validation framework.


A good workman is known by his tools.
gopal kishan
Ranch Hand

Joined: Feb 23, 2005
Posts: 99
Hi Marc,

thanks for your reply.

regards
Gopal
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Custom validation using validation framework...
 
Similar Threads
validate two passwords in struts
datePatternStrict : checking yyyy
object validation and messages
struts 1.? validation
Struts Validation Framework Query ....