• Post Reply Bookmark Topic Watch Topic
  • New Topic

validate a bean property in struts 2 using Xwork framework

 
pavan babu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
You have to be odd to be #1 - Seuss. An odd little ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!