wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation by annotations" Watch "validation by annotations" New topic

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
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
Struts2 annotation validation
Struts 2 validation using Annotation is not working
After validate ajax form not redirect to success or error result
separate validation for each method in action class
Handling error messages (Struts2 jquery )