File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes How to validate referenced bean property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to validate referenced bean property" Watch "How to validate referenced bean property" New topic

How to validate referenced bean property

Hermann Maurer

Joined: Oct 19, 2009
Posts: 4

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.


MyBean class:


Many thanks,
David Newton

Joined: Sep 29, 2008
Posts: 12617

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.
I agree. Here's the link:
subject: How to validate referenced bean property