tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Delisle <Pierre.Deli...@Sun.COM>
Subject Re: Using HTML tags inside scoped variable
Date Fri, 04 Jun 2004 08:19:37 GMT
Lukasz,

Simply use:

  <c:out value="${ErrorMessage}" escapeXml="false"/>

    -- Pierre

p@zdzior wrote:

> Hello,
> 
> Is it possible to keep a string with HTML tags inside a scoped variable.
> I am trying to do something like:
> <c:set var="ErrorMessage" scope="page">
> Message text... <b><c:out value="${Customer}"/></b>
> </c:set>
> 
> Unfortunately when I try to insert the ErrorMessage into the page body
> using:
> <c:out value="${ErrorMessage}"/>
> 
> I get something like:
> 
> "
> Message text... <b>Customer</b>
> "
> 
> Is it possible to make c:out not to escape HTML tags,
> or maybe the whole approach is incorrect and there is other way to solve
> it?
> 
> Thanks for help,
> regards,
> Lukasz
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 


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


Mime
View raw message