Joel Carklin wrote:
The <c:out> action escapes special characters (e.g. quotes) to their
corresponding character entity code, by default.
Is there any way to NOT escape a special character using <c:out>?
For example, if I want to display a string with html in it such as
"this is the <b> important </b> bit" when displaying the string using
c:out the < > characters are actually displayed on the screen because at
some point they are converted to ampersand characters before display...
ie "this is the <b> important </b> bit...
(or something like that, not sure if those are the actual escape
codes...)
You control this with the escapeXml attribute:
<c:out value="${valueWithHTML}" escapeXml="false" />
Hans
--
Hans Bergsten <[EMAIL PROTECTED]>
Gefion Software <http://www.gefionsoftware.com/>
Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
Details at <http://TheJSPBook.com/>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com