Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP: how to display a String that has HTML

807606Apr 16 2007 — edited Apr 16 2007
I'm reading contents of a file and want to display them on the JSP page. However, the contents may have HTML tags in them as well. Right now it just displays the String HTML tags, not actually rendering them. How do I display the String so the HTML tags are actually used?

So if the String has "<b>Hello</b>"
I want it to show up in the webpage with the word Hello bolded, not the actual <b> and </b> tags displayed.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2007
Added on Apr 16 2007
2 comments
710 views