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

A-pZ updated WW-3996:
---------------------

    Description: 
Since 2.3.10 RegexFieldValidator don't work, but same configulation and same 
validation setting in 2.3.8 , RegexFieldValidator work correctly.


  was:
Since 2.3.10 RegexFieldValidator don't work, but same configulation and same 
validation setting in 2.3.8 , RegexFieldValidator work correctly.

I wrote validation config in Action Class, such as below,

@Validations(
  requiredStrings={
    @RequiredStringValidator(fieldName="name" , message="name is required.") ,
    @RequiredStringValidator(fieldName="telephone" , message="telephone number 
is required.") ,
  },
  regexFields={ 
    
@RegexFieldValidator(fieldName="telephone",expression="\\d{2,5}-\\d{1,4}-\\d{4,5}"
 , message="invalid telephone number.")
  }
)


    
> RegexFieldValidator don't work.
> -------------------------------
>
>                 Key: WW-3996
>                 URL: https://issues.apache.org/jira/browse/WW-3996
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Validators
>    Affects Versions: 2.3.12
>         Environment: Tomcat7.0
> Struts2.3.12 + Convention Plugin(2.3.12)
>            Reporter: A-pZ
>             Fix For: 2.3.x
>
>
> Since 2.3.10 RegexFieldValidator don't work, but same configulation and same 
> validation setting in 2.3.8 , RegexFieldValidator work correctly.

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

Reply via email to