<body>
?? <%
?? DbDao db=new DbDao();
?? List l=db.selectAllFeeder();
?? request.setAttribute("v",l);
?? %>
?? <ec:table
??items="v"
??action=""
??cellspacing="2"
??imagePath="/Images/table/*.gif"
??title="Feeder列表"
??width="100%"
??var="vv"
??rowsDisplayed="30"
??>
??<ec:exportXls
???????????????? fileName="data.xls"
???????????????? tooltip="Export Excel"
???????????????? text="XLS"
???????????????? />
??<ec:row? onmouseover="this.style.cursor='hand'" highlightRow="true">
???<ec:column property="CREATOR" >
???</ec:column>
???<ec:column property="OKORNG"></ec:column>
???<ec:column property="NGTIME" title="出入庫紀錄">
???<input name="io"? type="button" value="出入庫紀錄" onclick="alert('${vv.CREATOR}')">
???</ec:column>
???<ec:column property="NGOP" title="維修歷史">
???<input name="r"? type="button" value="維修歷史" onclick="alert('123')">
???</ec:column>
???<ec:column title="test">
???</ec:column>
???</ec:row>
?</ec:table>
如此以來就可以在text button....內(nèi)隨意應用JavaScript及其他一些效果了。