commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Walters <walt...@edge.net>
Subject Re: [jelly] writing < to stream
Date Sat, 07 Feb 2004 17:16:02 GMT
When you invoke run on the Script object to execute, you pass in the 
jelly context and an XMLOutput instance.  If you create the XMLOutput 
instance with XMLOutput.createXMLOutput, you can pass in another 
parameter at the end that's an escapeText flag.  If it's false, your 
text should not get escaped.

Scott


Robert Lario wrote:

> I written a tag as follows:
>  
> public void doTag(org.apache.commons.jelly.XMLOutput xMLOutput) {
>         try {
>             xMLOutput.write("<%");
>             xMLOutput.write(this.getBodyText());
>             xMLOutput.write("%>");
>         } catch(Exception ex)
>         {
>             
>         }
>     }
>  
> When I use the tag I want the output to be :
>  <% some stuff %>
>  
> but get 
>  
> &lt; some stuff gt;
>  
> Can someone please help me with this? 
>  
> Thanks
> 



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


Mime
View raw message