Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Use <bean:write> to write special characters?

    0 answers - 687 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi everybody,
    I have a string s whose value is '' (s contains 2 single quotes). I put a <bean:writetag 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 (AT) struts (DOT) apache.org
    For additional commands, e-mail: user-help (AT) struts (DOT) apache.org

Re: Use <bean:write> to write special characters?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "Java"

EMSDN.COM