This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • ValidatorComment
Skip to end of metadata
Go to start of metadata

I couldn't find a link to comment directly on the struts 'validator guide' page (http://jakarta.apache.org/struts/userGuide/dev_validator.html) so I am leaving my comment here.

You have a field validation listed as:

<field

    property="integer" 
    depends="required,integer,intRange"> 
    <arg0 key="typeForm.integer.displayname"/> 
    <arg1 
        name="range" 
        key="${var:min}" 
        resource="false"/> 
    <arg2 
        name="range" 
        key="${var:max}" 
        resource="false"/> 
    <var> 
        <var-name>min</var-name> 
        <var-value>10</var-value> 
    </var> 
    <var> 
        <var-name>max</var-name> 
        <var-value>20</var-value> 
    </var> 
    </field> 

Surely the arg1 and arg2 elements should have the name intRange, not range, since they apply to the 'intRange' validation.

I had make this change in my app or I received 'Blah must be in the range null through null' in my error messages.

  • No labels