Oh! Thank you so much. At first, I thought the filter attribute of the bean tag is used to filter HTML tags, so I didn't give it a try.
>>> [EMAIL PROTECTED] 8/12/2005 4:57:22 AM >>> I think that if you do <bean:write 'whatever' filter="false"/> your problems will disappear :-). Cheers, Fotis PS: A bit clearer : make sure that you type filter="false" inside your tag -----Original Message----- From: Thai Dang Vu [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 11:34 PM To: user@struts.apache.org Subject: Use <bean:write> 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: [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]