You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2014/07/29 20:20:39 UTC
[jira] [Commented] (WW-3952) creditCard validator available in
Struts 1 missing in Struts 2
[ https://issues.apache.org/jira/browse/WW-3952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14078105#comment-14078105 ]
Lukasz Lenart commented on WW-3952:
-----------------------------------
I think the simplest solution is to use {{RegexValidator}} and one of the regex (or all) for given card vendor
http://www.regular-expressions.info/creditcard.html
> creditCard validator available in Struts 1 missing in Struts 2
> --------------------------------------------------------------
>
> Key: WW-3952
> URL: https://issues.apache.org/jira/browse/WW-3952
> Project: Struts 2
> Issue Type: Improvement
> Components: XML Validators
> Affects Versions: 2.3.8
> Reporter: Daniel Le Berre
> Fix For: 2.3.18
>
>
> Struts 1 has a creditCard validator. That validator does not exists in Struts 2.
> It would be nice to have also that validator in Struts 2 to allow an easier migration from Struts 1 to Struts 2.
--
This message was sent by Atlassian JIRA
(v6.2#6252)