You need to replace quotes in your key/value with """ so that it renders as a quote in html, without disturbing the quotes you are putting the value in.
Quite possibly the JSTL replace function would do the trick
Using a framework such as struts/stripes etc will normally do this sort of thing for you as well.
Yeah. Do that. Thats even easier.
Joined: Mar 29, 2010
Thanks for your suggesstions.
I tried to use <cut> and below is the piece of code which I changed
That's because your HTML is sloppy. Always quote attribute values. This has nothing at all to do with JSP.
Joined: Jul 06, 2005
It might have something to do with the fact that you have specified escapeXml as false !?!?!?
Escaping the XML is the whole point of using this tag!!! That's what will convert the " to "
Also Bear's comment about quotes is also relevant.
I would use single quotes in this case. Some parsers have trouble with 'nested' double quotes even if the quotes in question are in a seperate tag.