File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes using html tag in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "using html tag in java" Watch "using html tag in java" New topic
Author

using html tag in java

Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 72
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
EPractice Labs Support
Ranch Hand

Joined: Nov 07, 2005
Posts: 249
You can use like below:



(or)



Ganesan Ponnusamy Java Certification | Test Generator | OCAJP | OCPJP | OCEJWSD | EJB Certification
OCEJPAD | SCJD | SCWCD | SCBCD | SCDJWS | OCMJEA | Web Services Certification | SCMAD
Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 72
the problem was i had set text/plain instead of text/html for mail sending. Thanks anyways
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using html tag in java