This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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