wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts validation with minlength Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts validation with minlength" Watch "Struts validation with minlength" New topic
Author

Struts validation with minlength

Rabee' Nawash
Greenhorn

Joined: Feb 27, 2005
Posts: 14
Dear All,

I'm facing a struts validation problem with minlength, the validation alert message will be like this

customer name cann't be less than null characters, I check everything in the validation.xml everything are defined correctly

<field property="beneficiary.account.number" depends="required,maxlength, minlength, integer">
<arg0 key="label.transfers.BeneficiaryAccountNumber" />
<arg1 key="${var:maxlength}" name="maxlength" resource="false" />
<arg2 key="${var:minlength}" name="minlength" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>13</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>13</var-value>
</var>
</field>


Best Regards,<br />Rabee' Nawash
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts validation with minlength
 
Similar Threads
Help to add validation
Struts validator Framework
Validator for NOT NULL/ blanks
Struts Validation not working
custom validator and custom tags