I've been struggling with this issue for a while and any pointer would be
appreciated.
I have a simple file with one field -name; I would like to validate that the
user put information in it.
I'm using the annotation in order to achieve this but for some reason the
validation doesn't work (there
Did you annotate the class with the @Validation() annotation?
d.
--- xianwinwin <[EMAIL PROTECTED]> wrote:
>
> I've been struggling with this issue for a while and any pointer would be
> appreciated.
>
> I have a simple file with one field -name; I would like to validate that
> the
> user put
yes i did :super:
newton.dave wrote:
>
> Did you annotate the class with the @Validation() annotation?
>
> d.
>
> --- xianwinwin <[EMAIL PROTECTED]> wrote:
>
>>
>> I've been struggling with this issue for a while and any pointer would be
>> appreciated.
>>
>> I have a simple file with one
Try annotating the getter rather than the setter.
-Wes
On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> yes i did :super:
>
>
>
> newton.dave wrote:
> >
> > Did you annotate the class with the @Validation() annotation?
> >
> > d.
> >
> > --- xianwinwin <[EMAIL PROTECTED]> wrote:
> >
> >>
> >>
thanks wes, I tried this manipulation - didnt work
:-(
Wes Wannemacher wrote:
>
> Try annotating the getter rather than the setter.
>
> -Wes
>
> On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>>
>> yes i did :super:
>>
>>
>>
>> newton.dave wrote:
>> >
>> > Did you annotate the class with t
Please post the entire relevant code and configuration. I do this all the
time (annotating the getter, though, as Wes said) and don't have any
problems. You're extending ActionSupport?
d.
--- xianwinwin <[EMAIL PROTECTED]> wrote:
>
> thanks wes, I tried this manipulation - didnt work
> :-(
>
>
I didn't see an INPUT result configured, which will be needed.
/Ian
--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: [EMAIL PROTECTED]
Dave Newton wrote:
Please post the entire relevant code and confi
I guess your problem is in the xml file.
You are using "error" result type. But by default if validation error
occurs, "input" string is being returned.
So please use "input" instead of "error" and check again.
Thanks
On Jan 4, 2008 5:07 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> I've been st
AND THE WINNER IS: xniit2003
YES!! thank you so much! good call and a brilliant observation
thank you all!
you wrote:
I guess your problem is in the xml file.
You are using "error" result type. But by default if validation error
occurs, "input" string is being returned.
So please use "inp
s.pwd = password;
}
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: xianwinwin <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Thu, 3 Jan 2008 15:37:08 -0800 (PST)
> To:
> Subject: struts2: interceptor - validation doesn
10 matches
Mail list logo