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] [Closed] (WW-4092) Regex validation appears broken in latest struts2 versions
Date Wed, 05 Jun 2013 18:08:20 GMT

     [ https://issues.apache.org/jira/browse/WW-4092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart closed WW-4092.
-----------------------------

    Resolution: Invalid

As already mentioned parameter name changed

http://struts.apache.org/release/2.3.x/docs/regex-validator.html
                
> Regex validation appears broken in latest struts2 versions
> ----------------------------------------------------------
>
>                 Key: WW-4092
>                 URL: https://issues.apache.org/jira/browse/WW-4092
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Validators
>    Affects Versions: 2.3.14, 2.3.14.1, 2.3.14.2, 2.3.14.3
>         Environment: Windows 7
>            Reporter: Kent East
>            Priority: Minor
>              Labels: regex, validation, xml
>
> After creating a simple project by following the instructions here: http://www.itinpractice.com/tutorials/397/struts-2-form-validation-using-xml.html#.Ua9bQpyNBdU
I ended up with a working simple xml validator that looks like this:
> <validator type="regex">
>     <param name="fieldname">personBean.phoneNumber</param>
>     <param name="expression"><![CDATA[\d{3}-\d{3}-\d{4}]]></param>
>     <message>Phone number must be entered as 999-999-9999.</message>
> </validator>
> Changing the struts2-core version in the pom.xml file to 2.3.14.3/2.3.14.2/2.3.14.1/2.3.14
makes the regex no longer return an error. If I change it back to 2.3.4.1, it works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message