struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masllorens Sibils, Lucas" <lucas.masllor...@gedas.es>
Subject Problem with struts.
Date Thu, 05 Sep 2002 17:53:26 GMT
Hello,

I have a problem with Struts Validator.
Last month, I read that Validator could be
used from outside Struts but now that the
product is intergated with struts... I don´t 
know.

I would like to use it in a Swing application.
Is it posible? 

I try to use it like this:

RegistrationForm bean = new RegistrationForm();
Vector lErrors  = new Vector();
ValidatorResources resources =
ValidatorResourcesInitializer.initialize"validation.xml");
Validator validator = new Validator(resources, "registrationForm");
validator.addResource(validator.BEAN_KEY, bean);
validator.addResource("java.util.List", lErrors);
validator.validate(); 
System.out.println(lErrors);

It doesn´t work because lError is empty.
...but it doesn´t throw any exception.

Can you help me.
I not. There is any other product for javabean validation?


***************************************************************************

DISCLAIMER: Este mensaje contiene información propietaria 
de la cual parte o toda puede contener información confidencial
o protegida legalmente. Esta exclusivamente destinado al 
usuario de destino.
Si, por un error de envio o transmisión, ha recibido este mensaje 
y usted no es el destinatario del mismo, por favor, notifique
de este hecho al remitente.
Si no es el destinatario final de este mensaje no debe usar, 
informar, distribuir, imprimir, copiar o difundir este mensaje 
bajo ningún medio.

---------

DISCLAIMER: This e-mail contains propietary information some 
or all of which may be legally privileged. It is for the intended 
recipient only. If an addressing or transmission error has 
misdirected this e-mail, please notify the author by replying to
this e-mail. If you are not the intended recipient you must not use,
disclose, distribute, copy, print or rely on this e-mail.

***************************************************************************

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


Mime
View raw message