This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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