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",
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 Us
You'll want a custom validator, which you can configure with an annotation.
Dave
On May 11, 2011 4:39 AM, "Mohamed SIDI" wrote:
> 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,
> so
3 matches
Mail list logo