Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts validation with minlength

 
Rabee' Nawash
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic