How do you know it ?
When outputting the character "&" in XML, it has to be output as
"&"...
I just tried the following:
<j:set var="x" value="a&a"/>
<log:info>x${x}</log:info>
and this gave me:
INFO: xa&a
But note... I'm using log:info and not outputting to the XML-stream!
Using getstatic, invokestatic and System.out.println should give you
the same result as well.
Alternatively, peeling each character should help as well.
Hope this helps.
paul
Le 12 août 05, à 00:48, Guo, Jiaqi a écrit :
Thanks for reply.
This doesn't seem to work. & is interpreted into &amp; when I
set the value to the variable no matter the escapeText attribute is
true or false. Wrapping with CDATA doesn't help either.
Regards
Jiaqi
[EMAIL PROTECTED]
http://www.cyclopsgroup.com
Paul Libbrecht wrote:
If you want exactly this sequence of characters you need exactly this
one: aaa&bbb&ccc
hope that helps.
paul
Le 11 août 05, à 23:33, Guo, Jiaqi a écrit :
I couldn't find the answer from the website. What I want to do is
very simple.
...
<j:set var="someVariable">aaa&bbb&ccc</j:set>
or
<j:set var="someVariable" value="aaa&bbb&ccc"/>
Thanks in advance.
Regards
Jiaqi
[EMAIL PROTECTED]
http://www.cyclopsgroup.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]