Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在使用显示标记导出到Excel时删除单选按钮?_Java_Jsp_Jakarta Ee_Struts - Fatal编程技术网

Java 如何在使用显示标记导出到Excel时删除单选按钮?

Java 如何在使用显示标记导出到Excel时删除单选按钮?,java,jsp,jakarta-ee,struts,Java,Jsp,Jakarta Ee,Struts,我想导出在jsp页面上使用display标记显示的表。 但当我导出它时,它会导出带有表格的单选按钮 下面是显示标记的片段 <display:table requestURI="CustListReportDetails.do" name="sessionScope.SESSION_CUST" id="formtable" pagesize="100" style="width:100%; border:0; cellspacing:0; cellpadding:10; align:cent

我想导出在jsp页面上使用display标记显示的表。 但当我导出它时,它会导出带有表格的单选按钮

下面是显示标记的片段

<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文件中不应包含单选按钮。

问题已解决 在包含单选按钮的显示列标记中,我放置了media=“html”,现在它不会在excel工作表中导出单选按钮

在上述代码段中更改的代码::

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

同样的问题让我很沮丧,所以我继续前进。它使用普通的html表格格式,并具有无穷的功能。此外,它不会在排序、分页等方面重新加载页面。请尝试一下