2012-02-08 97 views
3

我想导出在jsp页面上使用显示标签显示的表格。 但是,当我出口,它出口单选按钮与表如何使用显示标签导出到Excel时删除单选按钮?

下面是显示标签

<display:table requestURI="CustListReportDetails.do" name="sessionScope.SESSION_CUST" id="formtable" pagesize="100" style="width:100%; border:0; cellspacing:0; cellpadding:10; align:center;" export="true"> 

    <display:table requestURI="CustListReportDetails.do" name="sessionScope.SESSION_CUST" id="formtable" pagesize="100" style="width:100%; border:0; cellspacing:0; cellpadding:10; align:center;" export="true"> 
    <display:column title="" style="width:10px"> 
     <input type="radio" name="recordIdentifier" value="${formtable.customerId}" onclick="javascript:setRoleCode('${formtable.customerId}');"/> 
    </display:column> 
    <display:column property="name" title="Name" /> 
    <display:column property="contactPerson" title="Contact Person" />    
    <display:column property="gender" title="Gender" /> 
    <display:column property="dob" title="Date Of Birth" /> 

    <display:setProperty name="export.excel.filename" value="Customer_reportExcel.xls" /> 
</display:table> 

所需的XSL文件不应该有它的单选按钮的片段。

+0

我很沮丧的同样的问题,所以我转移到[这个dataTables插件](http://datatables.net/)。它使用正常的html表格格式,并具有无限的功能。此外,它不会重新加载排序,分页等页面。试一试 – anu 2012-02-08 07:07:17

+0

仍然使用JSP? – 2012-02-08 09:49:04

回答

3

的问题得以解决 在显示栏标签含有单选按钮,我已经把媒体=“HTML”,现在,它不会在excel表

代码在上面的代码片段改变导出的单选按钮: :

display:column title="" style="width:10px" **media="html"**