hi

hello friends, i need an help from all of u.

problem:
i have a jsp page, in that jsp page i am displaying data retrieved from backend that is mysql in table format, i am not having any problem in that.
now i want to color the table individual cell with different colors based on data in which the cell contains.
for example:
if table cell contains data like MET then i want to color the cell with green, if it contains pending the color is red.

please give me sample code(jsp,html,or javascript or any script) or related links . please help me i have to submit it by 22nd of this month help me please.

Use CSS to define the colours, then when generating the html use the data to determine which style to apply to the cell.

Check out JSTL and CSS tutorials on how to do those things.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.