display下c标签与S标签

<display:table name="rows" id="r">
                             <c:set value="${r}" var="rowName" scope="request"></c:set>
                    <display:column title="   ">
                         <c:out value="${rowName}"></c:out>
                    </display:column>
                     <s:iterator value="cols" id="c">
                        <s:set name="colName" value="#c.value"></s:set>
                        <s:set name="rowAndCol" value="#colName+','+#request.rowName"></s:set>
                        <s:set name="cntValue" value="%{cnts[#rowAndCol]}"></s:set>
                        <display:column title ="${c.value}">
                             <s:if test="%{#cntValue!='null'}">
                                     <c:out value="${cntValue}"></c:out>
                                 </s:if>
                        </display:column>
                      </s:iterator>
                  <s:set name="sum" value="getText('web.src.main.webapp.web-inf.pages.examstatistics.deviceutilization.deviceUtilization.sum')"></s:set>
                 <display:column title="${sum}">

                     <s:set name="keys" value="%{sums[#request.rowName]}"></s:set>
                          <c:out value="${keys}"></c:out>

                 </display:column>
            </display:table>

费了几个小时才弄出来,参考与   http://dev.firnow.com/course/3_program/java/javajs/20100719/461462.html

posted @ 2010-08-02 08:52  jorgen  阅读(486)  评论(0编辑  收藏  举报
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj