• Post Reply Bookmark Topic Watch Topic
  • New Topic

Simply printing HTML tag on JSP

 
Jes Sie
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear people,
This is rather a simple problem which I knew how to solve it but now forgotten .
I've got a String wich simple looks like this: -
String value = "<B> someValue </B>";
When this is passed to the Struts tag library to be printed out ....it literally print them out as

Obviously I wanted it in bold. I don't think this is specific to Struts....but just JSP in general. Please help.
 
Remesh Govind
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just put that string out side the <% %>
<HTML>
<b> what u want in bold <b>
</html>

if it is a satatic content page
.... do u really need JSP for a content only page ?
Regards
Remesh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!