• Post Reply Bookmark Topic Watch Topic
  • New Topic

converting String into html

 
Arpit Chaudhary
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have some text to display on jsp using struts tag bean:write tag
we want to change the style of text by adding bold tag within the text

like "this is the sample text" is the text to display we want to "this" word as bold on java end we added bold tag
as "<b>this</b> is the sample text"
but it display the text as it is. it is unable to interpret the bold tag because it converted the special character into its corresponding ascii
value.

we have also tried unscape of javascript and document.write as well but there is no effect.

please help me as soon as possible.....
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the text being emitted with <cut>?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!