commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilbert Tan" <Gilbert...@crimsonlogic.com>
Subject RE: Help with Commons Validator
Date Tue, 17 Dec 2002 07:07:42 GMT
Sorry for the confusion.
What I mean is that I want to validate all the parameters of the request
object
in the servlet. 
For example, I want to get the string tmp which is obtained in the
following way.
String tmp = request.getParameter("Name");

Can it be done using Validator?
Thanks again.

Gilbert Tan



-----Original Message-----
From: Martin Cooper [mailto:martinc@apache.org] 
Sent: Tuesday, December 17, 2002 2:24 PM
To: Jakarta Commons Users List
Subject: RE: Help with Commons Validator




On Tue, 17 Dec 2002, Gilbert Tan wrote:

> I mean validated the input obtained directly from a html form. Instead

> of creating a javabean to store all the fields of the html form.

I guess I still don't understand. What do you mean by "obtained directly
from a html form"? Are you talking about client-side or server-side
validation? An HTML form is a browser entity - there is no natural
server-side equivalent. What object are you trying to validate?

--
Martin Cooper


> This is because I need to incorporate an input validation module into 
> an existing system, which does not use javabean to store the form 
> field. Any idea how this can be done using the Validator component?
> Or do I have to rewrite my own component?
> Thanks for all the help.
>
> Gilbert Tan
>
>
>
> -----Original Message-----
> From: Martin Cooper [mailto:martinc@apache.org]
> Sent: Tuesday, December 17, 2002 12:32 PM
> To: Jakarta Commons Users List
> Subject: RE: Help with Commons Validator
>
>
>
>
> On Tue, 17 Dec 2002, Gilbert Tan wrote:
>
> > Hi,
> >
> > Can I ask whether the Commons Validator can validate a form 
> > directly?
>
> What do you mean by "a form"? If it's not a JavaBean, what is it?
>
> --
> Martin Cooper
>
>
> > And not through a javabean?
> > Thanks for any info.
> >
> > With Regards
> > Gilbert
> >
> >
> >
> > -----Original Message-----
> > From: Taras Tielkes [mailto:taras@info.nl]
> > Sent: Tuesday, December 17, 2002 12:11 AM
> > To: 'Jakarta Commons Users List'
> > Subject: RE: Help with Commons Validator
> >
> >
> > There's an example application in the source.
> >
> > > -----Original Message-----
> > > From: Gilbert Tan [mailto:GilbertTan@crimsonlogic.com]
> > > Sent: Monday, December 16, 2002 12:13 PM
> > > To: commons-user@jakarta.apache.org
> > > Subject: Help with Commons Validator
> > >
> > >
> > > Hi,
> > >
> > > I am new to the Commons project by Jakarta.
> > > I am wondering if anyone has tried to use the Validator module 
> > > with an
> >
> > > application which is not build using the Struts framework? Any 
> > > advise would be greatly appreciated. Thanks.
> > >
> > >
> > > Gilbert Tan
> > >
> > > Security Software Engineer
> > >
> > > RadianTrust Pte Ltd
> > >
> > > DID: 68877540
> > >
> > >
> > >
> > > RadianTrust Pte Ltd
> > > 31 Science Park Road, The Crimson, Level 1, Singapore 117611 Main
> > > Line: +65 6887 7999 Fax: +65 6887 7800 Visit us at 
> > > www.radiantrust.com 
> > > <file:///C:/Documents%20and%20Settings/Gilberttan/Application%
> > > 20Data/Mic
> > > rosoft/Signatures/www.radiantrust.com>
> > >
> > >
> > >
> >
> > --
> > To unsubscribe, e-mail: 
> > <mailto:commons-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> > <mailto:commons-user-help@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:commons-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> > <mailto:commons-user-help@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail: 
> <mailto:commons-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:commons-user-help@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<mailto:commons-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:commons-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:
<mailto:commons-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:commons-user-help@jakarta.apache.org>


Mime
View raw message