This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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:
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 )