Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1205

RegexFieldValidator cannot process white space string correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • WW 2.2.1
    • WW 2.2.2
    • None
    • None

    Description

      see such code snippet:
      <field-validator type="regex">
      <param name="expression">
      <![CDATA[([aAbBcCdD][123][eEfFgG][456])]]>
      </param>
      </field-validator>

      RegexFieldValidator read expression string including embracing white space and cannot process expression correctly. I must trim embracing white space and write <param> entity in one line, then RegexFieldValidator will work fine.

      <param name="expression"><![CDATA[([aAbBcCdD][123][eEfFgG][456])]]></param>

      Attachments

        Issue Links

          Activity

            People

              rgielen René Gielen
              robbin Robbin Fan
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: