jQuery in Action, 3rd edition
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
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: How to validate referenced bean property
It's not a secret anymore!