File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 15376
    
    6
style="color:#FFFFFF;background-color:#000000;"

Eric
samart mateo
Ranch Hand

Joined: Feb 06, 2006
Posts: 37
Thank you very much
 
 
subject: CSS and JSP
 
Similar Threads
Color Table Rows Based on a Field Value
servlets/jsp
Color Rows of a Table
Trouble with retrieving dates after I create a column alias
xml in JSP page