struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Birch" <>
Subject RE: Escaped HTML characters in <bean:write/>
Date Wed, 28 Nov 2001 09:58:18 GMT

You know, I've gone over the documentation several times, tried various
debug statements, narrowed it down to bean:write, looked at the
documentation again and managed to miss filter=false.  I feel very foolish

Thanks very much for your help though!

Kind Regards,

-----Original Message-----
From: Shri []
Sent: 28 November 2001 00:37
To: Struts Users Mailing List
Subject: RE: Escaped HTML characters in <bean:write/>

add filter="false" in your <bean:write> tag.


-----Original Message-----
From: Chris Birch []
Sent: Wednesday, 28 November 2001 11:29 AM
Subject: Escaped HTML characters in <bean:write/>


I have a simple CRUD struts application which stores text in a
database.  The text stored is often something like:

"Struts is a <b>brilliant</b> framework"

The idea is that simple html formatting can be applied to the text when
it is output in a JSP.

The text above gets stored in the DB without any problems, selects on
the database show the information in there is exactly as was typed in,
also, simple System.out.println on a ResultSet of that data show it as
above.  However, in my JSP I output the text from a bean property using
<bean:write /> and in the html source I see that my < and > have become
&lt; &gt;  I actually want the markup to work as markup and not be
escaped like this.  Is it bean:write thats doing this, if so, is there a
way to turn it off?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message