This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using html tag in java  RSS feed

 
Mohan Mehra
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
say i'm displaying name and age using a servlet. i want the name and age being displayed to be bold. how can i use <b> tag


"Name: "+name;
"Age: "+age;
 
Ganesan Ponnusamy
MyExamCloud Support
Ranch Hand
Posts: 264
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use like below:



(or)

 
Mohan Mehra
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the problem was i had set text/plain instead of text/html for mail sending. Thanks anyways
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!