This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts validation with minlength

 
Rabee' Nawash
Greenhorn
Posts: 14
  • 0
  • 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>
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic