Issue with double quote in list box

Hi,

I have customer data with double quotes. I have to display the value in a list box and based on the selection made make further filtering.

Now because of the prsence of double quote I am not able to get the full expression in the option tag.

For ex:

I can only retrieve Sugar from the below option tag using javascript because of the the double quote .

<option value="sugar"&salt">

I knew that I can use " to replace " to handle the scenario. But as my JSP is run on the server side the " is getting converted to double quote itself. How can I handle the scenario so I can read Sugar"&salt instead of just Sugar.

Please help me. I tried this for more than 4 hours now.

[745 byte] By [garollousa] at [2007-11-27 3:45:39]
# 1
You are correct, escaping the double quote with a &quot; should work for the html. thats [ampersand];quot right? At least I presume thats what you were tryingIt is nice if this can be done by a tag such as the JSTL <c:out> tag or the struts <html:option> tag.
evnafetsa at 2007-7-12 8:49:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...