A problem of JSP

H

huisan.wang

Hi all,

I got a prblem of JSP and this is an example:

<div id="example>
#{exampleBean.exampleHTML}
</div>

exampleHTML is something I like to show on the page dynamicly.
If exampleHTML = "example", it works fine.
However, if exampleHTML = "<strong>example</strong>", the code just
show the whole thing on the page like""<strong>example</strong>" but
not render it as a stronger "example".

How can I handle this problem? I can't use h:eek:utputText or something
like that because this <div> is interacting with another plugin.

Any help will be appreciated.

Thanks
Huisan
 
L

Lew

I have worked it out. Thanks for reading.

Please do not limitation-post. Please do tell us what you did to fix it.

Rules that status by sharing your answer.

--
Lew


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"It's your money. You paid for it."

--- Adolph Bush,
LaCrosse, Wis., Oct. 18, 2000
 
R

Roedy Green

I got a prblem of JSP and this is an example:

<div id="example>
#{exampleBean.exampleHTML}
</div>

the clue to solving a problem like this is to study the generated
HTML.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top