File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes validate a bean property in struts 2 using Xwork framework 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 "validate a bean property in struts 2 using Xwork framework" Watch "validate a bean property in struts 2 using Xwork framework" New topic
Author

validate a bean property in struts 2 using Xwork framework

pavan babu
Greenhorn

Joined: Sep 02, 2008
Posts: 15
Hi I am having difficulty in validating a bean property using xwork framework.I am using annotations for specifying validations.

here is the code




given the above files how to do we enforce name property as required using annotaions ?Just an fyi I dont want to define the name property in the action class.I want to impose validations directly on the bean itself.

--Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validate a bean property in struts 2 using Xwork framework
 
Similar Threads
pass bean property values to javascript function
Repeated code in Servlet and Bean
<jsp:setProperty> is raising Exceptions
MVC with JSF
How do I initialize this managed property?