As of March 14, 2003 it appears that Struts/Commons validation does not
support indexed properties as such:
I have a collection of objects A where each A has some properties, call them
p1, p2, and p3.
I want to validate field p3 for each object A in the collection.
Is this currently possible
I would like to know how to use the Struts Validator with indexed
properties.
I cannot display error messages under the field (but the validator
obviously works and performs validation).
Below is the relevant parts of my JSP and of my valdiation.xml file :
Upon submission of the JSP's form, I
validation.xml.
-Vijay
Frederic Dernbach wrote:
I would like to know how to use the Struts Validator with indexed
properties.
I cannot display error messages under the field (but the validator
obviously works and performs validation).
Below is the relevant parts of my JSP and of my valdiation.xml file
depends=required,integer,positive
arg0 key=rubis.strategy.label/
/field
You have specified it as
indexedListProperty=parameters
Plz Verify your validation.xml.
-Vijay
Frederic Dernbach wrote:
I would like to know how to use the Struts Validator with indexed
Thank you for the reply.
Yup am using dynabeans. Actually validation works just
fine, and populating the Value Object from the form
(velocity template) works just fine too. My only
problem is when after validation occurs, how do i keep
or retain values for each form attribute since they
are
Hello,
I have been using Vel-tools (struts) as the view
technology along with struts for a while now.
I am trying to get Indexed properties on a Velocity
Template which is used as an input form which then
needs to be validated by Struts validator. I am using
dyna beans, and the Value Object is
Does anybody have any tips for getting the validation portion working
along with vel-struts.
I'm using the Velocity View Tools for Struts with the Validator and
conventional beans without a problem.
What happens if you just fail validation without using the validator?
Or use conventional
I found the following example of validating an indexed property:
fieldproperty=cityStateZip.zipPostal[1]
depends=required,mask
page=2
arg0 key=registrationForm.zippostal.displayname/
var
I have been given the impression that the Validator can be used to
validate indexed properties in a form. I'm trying to figure out the
validation.xml syntax to perform this validation.
If I have a GroupForm that contains an ArrayList of UserForms, how do I
configure validation.xml?
For
9 matches
Mail list logo