I have a JSP page in which i am using display tag to display the information in table format.
I have a column called TICKET COLOR whose attributes are red,blue,green,yellow etc...
I have to make display the cell under TICKET COLOR columns colored based on the attribute value.
That is if the first attribute is red,then the background of that cell must be red and so on.
Remember this coloring must be only confined to that cell, not to the entire row.
Within that method, set the styles of the cells as follows
Joined: Aug 11, 2011
Thanks for the reply Ajeeth,
My Problem is a little different, let me tell you my question clearly.
In my JSP page i am displaying data in table format, we have used Display tag extensively for that, Please the find the line of code below.
In the above code this line will fetch the value of color and display it in table cell, so while displaying the table values first time itself i need to display that Ticket Color column to display the cells under it based on the source value which i get from DB, that is if CELL 1 contains the value RED,the background must be red for that cell.
This must be done at the first time of displaying the page, and not on mouse click or any other events.
Is there any way i can do it without removing the Display tag.
Thanks in advance..
Joined: Mar 30, 2005
Sorry Naveen, I haven't used dsiplay tags in the last 5 years, so I am not sure of the best and easy way to do that.
I can think of a solution where you can call a script on page load to set the column colors but Lets wait to see if some other ranchers have an answer for this.