Jakub Milkiewicz wrote:
Hi
I am using struts 1.2.8 and i have a problem with test condition with
validwhen validator.
Eveything works fine except when i try to compare sth with a string
containing values not from iso8859-1 charset .i.e
<field property="statementType" depends="validwhen" page="3">
<msg name="validWhen" key="need.to." resource="false"/>
<var>
<var-name>test</var-name>
<var-value>( *this* == "eWyciąg" )</var-value>
</var>
</field>
On my console i see : ValidWhen Error for field ' statementType' - line
1:19: expecting '"', found 'ą'
Any help, pls.
Looks like a character encoding problem. What charset did you save your
validation.xml file with, and what encoding declaration did you specify
in the XML preamble? By default, XML is parsed as UTF-8 if you don't
specify a different encoding. Make sure that you have correctly
specified the encoding and/or that you have saved the file with the
correct encoding.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]