Hi.
I have the next question related with validwhen validator.

I have the validwhen validator like
<var>
    <var-name>test</var-name>
    <var-value>((*this* != null) or ((actionName == "Action") and (*this* ==
null)))</var-value>
</var>

This works fine, but when I replace the "Action" string literal with unicode
characters (cyrilic) and set xml encoding in the validation.xml to <?xml
version="1.0" encoding="UTF-8" ?>, I get
the following error message:
2004-02-02 10:04:24,168 ERROR [STDERR] line 1:39: unexpected char: 0xzD
2004-02-02 10:04:24,168 ERROR [STDERR]  at
org.apache.struts.validator.validwhen.ValidWhenLexer.nextToken(ValidWhenLexe
r.java:236)
2004-02-02 10:04:24,168 ERROR [STDERR]  at
antlr.TokenBuffer.fill(TokenBuffer.java:69)
2004-02-02 10:04:24,168 ERROR [STDERR]  at
antlr.TokenBuffer.LA(TokenBuffer.java:80)
2004-02-02 10:04:24,168 ERROR [STDERR]  at
antlr.LLkParser.LA(LLkParser.java:52)
2004-02-02 10:04:24,168 ERROR [STDERR]  at
org.apache.struts.validator.validwhen.ValidWhenParser.value(ValidWhenParser.
java:384)

-----Original Message-----
From: Andriy Ruzhevych [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 9:15 AM
To: Struts Users Mailing List
Subject: Validwhen validator question


Hi.

Can I use global constants from constant element in validwhen validator? If
I can, how can I do that?
Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__________ NOD32 1.611 (20040127) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to