use the maxlength attribute on your field:
<html:text property="<some name>" maxlength="5" />

Andy Miller
IS Designer
Butte College
530.895.2946

-----Original Message-----
From: fea jabi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 12:28 PM
To: user@struts.apache.org
Subject: validation

creating a jsp in which the user will be entering their SSN.

Have 3 inputfields using which the user will be able to enter the SSN.

Have to make sure the user entered only 3 digits in first inputfield,
only 2 
digits in the second input field and 4 digits in the third inputfield.

using validation.xml for validation.

Also, is there anyway in jsp for not allowing the user to enter more
digits 
in each of the inputfields.

Thanks.

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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


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

Reply via email to