I finally got smart and downloaded the storefront example from O'Reilly.
This is working just fine:

      <field property="userName" depends="required,minlength,maxlength">
        <arg0 key="label.userName"/>
        <arg1 name="minlength" key="${var:minlength}" resource="false"/>
        <arg2 name="maxlength" key="${var:maxlength}" resource="false"/>
        <var>
          <var-name>minlength</var-name>
          <var-value>4</var-value>
        </var>
        <var>
          <var-name>maxlength</var-name>
          <var-value>12</var-value>
        </var>
      </field>

-----Original Message-----
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 16:44
To: 'Struts Users Mailing List'
Subject: RE: Application Resources & Error messages


This has to do with your validation xml.
You should have an arg0 and an arg1 that represent {0} and {1} in your
message respectively.
Check how you have it defined.
-Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to