Here is my situation, I have a
Java program that prints out a table and sends it to a
jsp. The table prints out how many hours someone works from Date-Date. I need to do columns for each day. So it looks something like:
[Name][Company][Hours][15][16[17][18]
I aleady have the name company hours done, problem is, is that the days are dynamic. I need to be able to select from a different range of dates not always the 15-18. So how can I add a column to a table with a loop? Here is what the current code looks like:
retval = "<th>Employee</th><th>Company</th><th>Account</th><th>Billable Hours</th>"
retval is a
string that is passed to the jsp to put out the column header.