replace "maxLength" with "maxlength" then it should work.
Petar Zaprianov wrote:
>
> The message always says the same, no matter yhe length is > or < 200
> characters:
>
> can not be greater than 200 characters.
>
>
> On 9/21/05, Matt Raible <[EMAIL PROTECTED]> wrote:
>>
>> Try this:
>>
>> * @struts.validator type="maxlength" arg1value="${var:maxlength}"
>> * @struts.validator-var name="maxLength" value="200"
>>
>> This has worked for me in the past.
>>
>> Matt
>>
>> On 9/21/05, Petar Zaprianov <[EMAIL PROTECTED]> wrote:
>> > Yes i have it in the get method
>> >
>> > and it seems to work, but if i put more o less than 20 characters, the
>> > result is the same always says that "can not be greater than 20
>> characters."
>> >
>> >
>> >
>> > On 9/21/05, Matt Raible <[EMAIL PROTECTED]> wrote:
>> > >
>> > > Is this (or something similar) getting put into your generated
>> > > validation.xml? Do you have it on the getter of your POJO?
>> > >
>> > > Matt
>> > >
>> > > On 9/21/05, Petar Zaprianov <[EMAIL PROTECTED] > wrote:
>> > > > Hi
>> > > >
>> > > > Im trying to validate the maxlength of the field but it does'nt
>> work,
>> > the
>> > > > code is the next:
>> > > >
>> > > > * @struts.validator type="maxlength"
>> > > > * @ struts.validator-args arg1resource="password.maxlength"
>> > > > * @struts.validator-args arg1value="${var:maxlength}"
>> > > > * @struts.validator-var name="maxlength" value="20″
>> > > >
>> > > > tks
>> > > >
>> > > > --
>> > > > Atte: Petar Zaprianov Doychev
>> > >
>> > >
>
--
View this message in context:
http://www.nabble.com/-appfuse-user--Maxlength-validation-within-pojos-tf331094s2369.html#a8292749
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]