Hello all,

Validation framework question for you all:

In the execute() method of an Action, I am iterating through a list of
objects.
On each object, I call a method validate() that will do validation on that
object's properties (using xwork).
In the event of validation failure, the message needs to be displayed in the
resulting JSP/vm template.

What's the best way to actually implement this?

In each objects's validate() method, can I use
com.opensymphony.xwork.validator.validators.RequiredFieldValidator,
com.opensymphony.xwork.validator.validators.IntRangeFieldValidator, etc
directly?
In <object_name>-validation.xml, I add <field> and <field-validator> tags,
but when I call validate() on the xwork classes, I get some exceptions
leading me to wonder if I am approaching this correctly.
(com.opensymphony.xwork.validator.ValidationException: Caught exception
while getting value for field, ognl.NoSuchPropertyException).

Thanks in advance!

Bryan White
[EMAIL PROTECTED]




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to