I am using the validate function of the Struts.
So I want to validation the mobile number of 10 digits that every digit of the mobile number must be an integer.
I have used mobileno.contains() method but I am not achieve the functionality properly.
<tr>
<td align="left" valign="middle" nowrap><bean:message key="sp.mbno"/></td>
<td nowrap align="left" ><html:text property="mobileno" name="reg"/></td>
</tr>
1 Answer