struts-user mailing list archives

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

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
now...

Thanks very much for your help though!

Kind Regards,
Chris.

-----Original Message-----
From: Shri [mailto:sdhoopad@gresham-computing.com.au]
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.

Shri

-----Original Message-----
From: Chris Birch [mailto:chris@artlas.net]
Sent: Wednesday, 28 November 2001 11:29 AM
To: struts-user@jakarta.apache.org
Subject: Escaped HTML characters in <bean:write/>


Hi,

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?

Regards,
Chris


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


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


Mime
View raw message