Forums Register Login

using html tag in java

+Pie Number of slices to send: Send
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;
+Pie Number of slices to send: Send
You can use like below:



(or)

+Pie Number of slices to send: Send
the problem was i had set text/plain instead of text/html for mail sending. Thanks anyways
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1584 times.
Similar Threads
Changing property value of an object in session with Struts2 tags
How to update the xml tag attributes for the given tag
using logic:iterate tag to access ActionForm elements
Recursively parse XML and splitting into separate XMLs
XML to HTML using JavaScript
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:22:49.