struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3952) creditCard validator available in Struts 1 missing in Struts 2
Date Tue, 29 Jul 2014 18:20:39 GMT

    [ 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)

Mime
View raw message