I think, "arg2" is only required for the range validation error message not
for minlength/maxlength.
please check for the error messages declared in the validator-rules.xml.
But in the struts-example application in validation.xml, "arg2" is declared
for maxlength,
<field property="username"
       depends="minlength,maxlength">
       <arg0   key="prompt.username"/>
       <arg1   key="${var:minlength}" name="minlength"
               resource="false"/>
       <arg2   key="${var:maxlength}" name="maxlength"
               resource="false"/>
       ......................

Make arg2 to arg1 for the maxlength and it should work.

-----Original Message-----
From: Jeff Born [mailto:jborn@;gr.com]
Sent: Monday, October 28, 2002 8:12 PM
To: [EMAIL PROTECTED]
Subject: Maxlength validation returns null in error message


Hi all,
 
I've looking at the struts-example.war in 1.1b2 and when running through the
login.jsp page I keep getting the following "username can not be greater
than
null characters."  This happens via the JavaScript validation.  I thought
maybe it might be JavaScript related, but when I remove the onsubmit and let
the server validate I end up with the same message.
 
I think I found somewhere that this is an open error, but not sure where to
check.  Any direction here?
 
Is there a simple fix?
 
Is a fix in the works?
 
Thanks,
 
jb

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to