Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to code "#FF000" ?

843841Dec 13 2004 — edited Dec 13 2004
I am programming a servlet to output a jsp. I want to make some words in red color. For example: (in jsp) <font color="#FF0000">User Name: </font> But in servlet how can I code the "#FF0000" ?

out.println("<font color="#FF0000">User Name: </font>") This has error.

Many thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2005
Added on Dec 13 2004
2 comments
523 views