my dog learned polymorphism
The moose likes Beginning Java and the fly likes html display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "html display" Watch "html display" New topic

html display

lynn fann
Ranch Hand

Joined: Oct 15, 2006
Posts: 115
in my database i have string like as followed:

hello<br> <i> world</i>

but when retrieve from database it retrieve as 1 whole string and display it. I want the text to be display as what it is format by the HTML tags. Is there anyway to do it?

Ps, im using struts framework.
suresh kalass

Joined: May 15, 2007
Posts: 3
are you using c_rt ut? if yes then display without using c_rt ut as it displays everything as such.... or you can save it in some variable and then display that will work fine
lynn fann
Ranch Hand

Joined: Oct 15, 2006
Posts: 115
what is c_rt: out??? how do i display using using that tag? but if i set as variable is 1 whole string right? so when i display out, it still as String, isn't?
I agree. Here's the link:
subject: html display
It's not a secret anymore!