struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Gordon <>
Subject Question on field/arg element in validator XML file
Date Thu, 13 Jul 2006 17:07:49 GMT
I'm reading the validator 1.1.3 DTD file and I'm trying to understand the
purpose of the "position" attribute in the <arg> element and the <arg>
element itself.  According to the DTD: 'The "arg" element defines a
replacement value to use with the message template for this validator or
this field.'

Can someone please dumb this down for me?

So, if I have:

<field property="meetingDate"
       depends="required, date, maxlength, mask">
  <arg position="0" key=""/>
  <arg position="1"
    <!-- the value here MUST match the maxlength attribute in the JSP
         for the text field with this property name -->

Does the position attribute refer to the "index" of the <var> element?  So
that it knows which "rule" to match?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message