struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasann Grampurohit (JIRA)" <>
Subject [jira] [Commented] (WW-4885) No validations happening after upgrading to Struts 2.5.12
Date Tue, 31 Oct 2017 13:01:00 GMT


Prasann Grampurohit commented on WW-4885:

Hi [~lukaszlenart],
Thank you for your reply. I got the issue. I was using regex as part of validation as below:

<field-validator type="regex">
   <param name="expression"><![CDATA[^[0-9A-Za-z&\-./\s]*$]]></param>

   <message key="fullname.invalid"/>

I changed expression to regexExpression as below and it started working.

<field-validator type="regex">
   <param name="regexExpression"><![CDATA[^[0-9A-Za-z&\-./\s]*$]]></param>

   <message key="fullname.invalid"/>

Not sure why other validations didn't work with the wrong regex, but after changing it all
the validations are working.

Thank you very much for your help on this.

> No validations happening after upgrading to Struts 2.5.12
> ---------------------------------------------------------
>                 Key: WW-4885
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.12, 2.5.13
>            Reporter: Prasann Grampurohit
>         Attachments:
> Hi,
> I have upgraded one of the project from Struts 2.3.x to 2.5.12. After this I see that
the validations are not working. It is all fine in version 2.3. I debug the stack in validate
method in action and see it has no field errors added.
> I have created a sample project to test this and validations are not happening there
too. Could you please help with this? I have attached the sample project.
> Thanks,
> Prasann

This message was sent by Atlassian JIRA

View raw message