aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes CSS and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "CSS and JSP" Watch "CSS and JSP" New topic
Author

CSS and JSP

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
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
style="color:#FFFFFF;background-color:#000000;"

Eric
samart mateo
Ranch Hand

Joined: Feb 06, 2006
Posts: 37
Thank you very much
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: CSS and JSP
 
Similar Threads
Trouble with retrieving dates after I create a column alias
servlets/jsp
Color Rows of a Table
Color Table Rows Based on a Field Value
xml in JSP page