Differences between revisions 1 and 2
Revision 1 as of 2005-03-22 05:48:35
Size: 997
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 2 as of 2009-09-20 23:12:20
Size: 997
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

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:


{{{ property="integer"

  • depends="required,integer,intRange"> <arg0 key="typeForm.integer.displayname"/> <arg1

    • name="range" key="${var:min}"



    • name="range" key="${var:max}"



    • <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.

ValidatorComment (last edited 2009-09-20 23:12:20 by localhost)