[
https://issues.apache.org/struts/browse/STR-2802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Yandell closed STR-2802.
------------------------------
Resolution: Fixed
Fix Version/s: 1.4.0
Assignee: (was: Struts Developers)
svn ci -m "Fixing STR-2802 by removing the unnecessary LBRACKET. Test now
passes and I don't understan
d what the LBRACKET would have been there for so I think it was just an error
that's been in there forever and ever. " src/
Sending
src/main/java/org/apache/struts/validator/validwhen/ValidWhenParser.g
Sending
src/main/java/org/apache/struts/validator/validwhen/ValidWhenParser.java
Transmitting file data ..
Committed revision 520763.
> Validator validwhen :Cannot make dependance between two different index in an
> Array
> -----------------------------------------------------------------------------------
>
> Key: STR-2802
> URL: https://issues.apache.org/struts/browse/STR-2802
> Project: Struts 1
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.8
> Environment: Operating System: Windows 2000
> Platform: PC
> Reporter: Oudot Christophe
> Fix For: 1.4.0
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.