How to display a String that may have an HTML tag?
I'm reading contents of a file and want to display them on the JSP page. However, the contents may have HTML tags in them as well. Right now it just displays the String HTML tags, not actually rendering them. How do I display the String so the HTML tags are actually used?
[280 byte] By [
smiles78a] at [2007-11-27 1:14:50]

# 1
How are you printing them onto the JSP page?
Can you show a code snippet?
If you are using a tag like <c:out> or <bean:write> they will escape the HTML characters by default. You can prevent it doing that by setting appropriate attributes.
<c:out value="${expr} escapeXml="false"/>
<bean:write value="hello" filter="false"/>