Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

Storing and retrieving HTML tags in mySQL

843836Aug 9 2003 — edited Aug 11 2003
Hi,

I have searched needlessly for the answer to this question and i was wondering if anyone knows the answer.

I am trying to store a String like this:
   String output = "<p>hello</p>"; 
and then return it to screen without it looking like this <p>hello</p>. In other words is their any way to tell a page that the string being output should be parsed as HTML. Should i store the string differently?

One other thing the HTML i am storing is a bit more detailed than a paragraph tag so i cant simply say
   <p><%= someString %></p>
Thanks in advance,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2003
Added on Aug 9 2003
16 comments
798 views