Group: comp.lang.java.programmer
From: John
Date: Friday, March 07, 2008 8:10 AM
Subject: How to un-escape HTML tags in JSP/Struts

Hi,
I receive from the database HTML formatted Strings like that:

Currently results

Using the struts tag, I expect to display it on the
generated JSP page in bold. But, for some reason, the browser really
displays

Currently results

The source code is of course

<b>Current results</b>

So, somewhere happens a conversion, but I do not know where; I saw,
that before calling the tag, the string is still with
the formatted tags, which is ok.

Can somebody tell me what am I doing wrong? Do you have some example
that works?

Thank you very much for your help,
John

News in English | Binaries Groups | 20lbs in 30 days