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