struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Menke, John" <John.Me...@acs-inc.com>
Subject RE: how to output html symbol to jsp page from user-defined tagli b?
Date Mon, 09 Feb 2004 17:31:59 GMT
there is an escapeXML attribute on the core:out tag set it to true

-----Original Message-----
From: Ricky Lee [mailto:java_diy@yahoo.com]
Sent: Saturday, February 07, 2004 9:42 AM
To: struts-user@jakarta.apache.orgstruts-userjakarta.apache.org
Subject: how to output html symbol to jsp page from user-defined taglib?


hi, thanks for reading..

i have a problem about output a html symbol from
taglib....

if i in a jsp page, use the code below:

<%
String abc="&gt;";
out.println(abc);
%>

it can show the symbol ">";

if in my taglib class, i use code below:

pageContext.setAttribute("symbal", "&gt;");

and in the jsp page, i use code below to output the
page context attrubite.

<c:out value="${symbal}" />

it doesn't show me the ">" symbol, it still show me
"&gt;"....

please help me....thanks! 



__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message