JSP中关于标签的使用解决思路

JSP中关于<c:forEach>标签的使用
目前有个需求:
循环描画100个table,各个table的某行的背景色由后台设定的值(dto.color1,dto.color2,...)决定
<c:forEach items="100" varStatus="status">
 <table id="table${status.index}">
  <tr>
   <td>标签${status.index}</td>
  </tr>
  <tr>
   <td style="background-color:${dto.color}" />
  </tr>
 </table>
</c:forEach>
想要的结果是,id为table1的某行的背景色是dto.color1,id为table2的某行的背景色是dto,color2,...(其中1,2,...是取status.index值),
由于不能这样使用:
<td style="background-color:${dto.color${status.index}}" />,
我也尝试过在后台弄个colorList,在前台这么用:
<td style="background-color:${dto.colorList.get(status.index)}" />,还是不行,报错了。
另外,forEach 标签的items也是固定的(100),不能改动,请各位高手指点红字处应该怎样写,或者用其他什么方式可以实现这一的功能,谢谢!
------解决思路----------------------
1、td样式暂时设置为style="background-color:${dto.color}"
2、当页面加载完用js设置为background-color:$(dto.color1)
js代码(jquery)
        $(function () {
            //循环页面所有的table
            $("table").each(function(i){
                    //获取当前table的索引,比如1、2、3
                    var index=$(this).attr("id").substr("table".length);
                    //组装新的样式字符串,比如原来样式为xx,那么现在样式为xx1
                    var backgroundcolorStr=$(this).find("tr:eq(1)>td").css("background-color")+index;
                    //设置新的样式
                    $(this).find("tr:eq(1)>td").css("background-color",backgroundcolorStr);
            })
        });

------解决思路----------------------

这样不行吗?
<c:set var="myStyle" value="${dto.color}${status.index}"></c:set> 

<td style="background-color:${myStyle}" />