Constant « String « JSP-Servlet Q&A





1. Unterminated string constant    stackoverflow.com

My Description contains an apstrophe('). How to escape it.

<a href='javascript:select("<%= pageBean.replace(list.getColumn(0), "'", "'") %>",
"<%= pageBean.replace(list.getColumn(1), "'", "'") %>");' title="<%=selRpt%>">
<span class='img-view'></span></a>
"<%= pageBean.replace(list.getColumn(1), "'", "'") %>" is the description part in my JSP ...

3. Unterminated string constant in IE    coderanch.com