Htmlfrag

<%-- Declare the core library --%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>

<%-- Save data with html tags --%>
<c:set var="msg" value="hi <b>John</b>!" scope="page" />

<%-- Show the value after translating special characters --%>
<c:out value='${msg}' />

<%-- Show the value without translating special characters --%>
<c:out value='${msg}' escapeXml="false" />

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.