Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to validate referenced bean property

 
Hermann Maurer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

referring to Struts 2. Tricky question.

Basically I know how to validate with annotations properties in the action class.
However I don't know how to validate properties of a bean which is referenced in the action class.

Hoping someone can let me know ...

Form.jsp and MyBean class are informational only, the question is how to put Validation into the ActionClass below for a referenced bean.


Form.jsp:


MyBean class:



ActionClass:





Many thanks,
Hermann
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic