File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes CSS and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "CSS and JSP" Watch "CSS and JSP" New topic


samart mateo
Ranch Hand

Joined: Feb 06, 2006
Posts: 37
hi all, how do i integrate CSS with JSP?

I'm doing a manufacturing tracking system. when i have a part in certain workstations, i wanted the part no to be displayed in different color according to workstations' coloring code. i stored the coloring code eg:FFCCFF in the database with the workstation so that the user could change the color later if they wanted to.

so, how do i displayed the part number fonts with colors defined according to workstations?

i only managed to change the <td> background color using jsp syntax but i wanted the font color to change instead as it looks nicer and tidier on the page.

this is what i do at this moment:

<td align="center" class="style29a" width="160" bgcolor="#<%= color %>"><%= stats %>

Thank you for your help.
[ February 07, 2006: Message edited by: samart mateo ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385

samart mateo
Ranch Hand

Joined: Feb 06, 2006
Posts: 37
Thank you very much
I agree. Here's the link:
subject: CSS and JSP