Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2802

Validator validwhen cannot test between two different indices in array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.8
    • 1.3.10, 1.4.0
    • Core
    • None
    • Operating System: Windows 2000
      Platform: PC
    • 39020

    Description

      This code in the validator.xml fails with this error : "unexpected token adr.."

      <field property="adr[0]" depends ="validwhen">
      <var>
      <var-name>test</var-name>
      <var-value>((this!=null) or (adr[1] != null ))</var-value>
      </var>
      </field>

      adr is an array of two adress lines. Only one of them needs tobe filled.
      According to the document of the validator, it should work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            christophe.oudot@fr.ibm.com Oudot Christophe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: