Hi Dav, I have done what you suggest, witch is developing my custom validator and reuse it in my annotation, that works well
@CustomValidator(type ="customCreditCardValidator", fieldName = "creditCard", message = "invalid credi card number", parameters = {@ValidationParameter(name = "creditCard",value = "creditCard"),@ValidationParameter(name = "required",value = "true" )}) thanks. 2011/5/11 Jim Talbut <jim.tal...@groupgti.com> > Don't miss out on just implementing a validation method directly in your > action. > Unless you are going to reuse the validation code is it worth the effort of > writing an annotation? > > Jim > > -----Original Message----- > From: Mohamed SIDI [mailto:mhm.s...@gmail.com] > Sent: 11 May 2011 09:39 > To: Struts Users Mailing List > Subject: create own annotation > > Hi all, > > I'm using struts2 annotation validation mecanisme, I have a problem with > credit card validation, I should develop my own annotation for this issue, > someone can help me to do that, or explain me the steps ? > > thanks > > -- > > > Cordialement > > Mohamed > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Cordialement Mohamed