You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thai Dang Vu <TV...@dhmh.state.md.us> on 2005/08/11 22:34:19 UTC

Use to write special characters?

Hi everybody,
 
I have a string s whose value is '' (s contains 2 single quotes). I put a <bean:write> tag in a javascript segment of a jsp page with the hope that when this jsp page is displayed I will have something like
 
var jan = new Array('', 1, '', 2, 3, 4, '');
 
But in fact what I get is that all single quotes are changed to #39;. So the result is
 
var jan = new Array(#39;#39;, 1, #39;#39;, 2, 3, 4, #39;#39;);
 
How can I overcome this problem?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org