wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "using html tag in java" Watch "using html tag in java" New topic

using html tag in java

Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 66
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:


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: 66
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
Similar Threads
XML to HTML using JavaScript
How to update the xml tag attributes for the given tag
Recursively parse XML and splitting into separate XMLs
using logic:iterate tag to access ActionForm elements
Changing property value of an object in session with Struts2 tags