aspose file tools*
The moose likes Struts and the fly likes validation by annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation by annotations" Watch "validation by annotations" New topic
Author

validation by annotations

James Peter
Ranch Hand

Joined: Sep 15, 2010
Posts: 115
Hi all,

I want to validate user inputs for all methods within my action.



method is like below


when i use like above i am getting a run time exception.
I think I am doing it in a wrong way. Any one help me to know correct way of doing? I searched net but could not get any example.


Thanks in advance
Peter
James Peter
Ranch Hand

Joined: Sep 15, 2010
Posts: 115
just for further info.

I am getting below error.

No result defined for action action.Student and result input
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validation by annotations
 
Similar Threads
Handling error messages (Struts2 jquery )
separate validation for each method in action class
Struts 2 validation using Annotation is not working
Struts2 annotation validation
After validate ajax form not redirect to success or error result