Before you tie yourself to commons-validator, take a look at Oval. I could be wrong, but I think there is a bean validation JSR and Oval is the reference implementation (or at least it is JSR compatible).
-Wes On Fri, Jan 15, 2010 at 11:21 AM, doahh <ga...@prodia.co.uk> wrote: > > Don't worry about this. It looks like the commons-validator will be fine and > I think thats what the struts2 framework uses underneath anyway. > > > > > doahh wrote: >> >> I have a Flex app that is sending data to the server and I would like to >> validate the Objects being passed on the server side. The Flex app passes >> the information over an AMF channel and so it does not go through the >> Struts2 framework. >> >> So far, I have found classes such as: >> >> com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator >> >> but I get lost on what happens when I should call: >> >> stringLengthFieldValidator.validate(myObject); >> >> as it doesn't return anything and needs a non-null ValidatorContext - >> which I don't know how to setup correctly. >> >> Can anyone provide a link or advice on how to do this please? >> >> > > -- > View this message in context: > http://old.nabble.com/How-to-do-programatic-validation--tp27179164p27179568.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org