0
我有一个应用程序,我有一个表格,该表格正在将其数据转换为pdf文件,它在sturts中并且工作正常。但是我必须添加此功能的另一个应用程序也有一个表与数据库中的数据。我张贴我的工作代码,也是我想要添加此功能的代码片段.... 这是从哪里我的页面正在导出数据到file.i在我的表来实现这个PDF文件,但是当我当我在导出为PDF选项单击表点击在struts中获取表格以将其数据转换为pdf格式
<display:table class="tableData context-menu-one" name="sessionScope.DetailsFormBean.listOfUser" requestURI="/search.do" id="tableData" pagesize="10" style="overflow-x: scroll" export="true">
<thead>
<tr style="font-size: 14px;" >
<th align="left"> <display:column title="Favourites"/></th>
<th align="left"> <display:column property="call_type" title="CALL_TYPE"/></th>
<th align="left"> <display:column property="a_no" title="A_NO"/></th>
<th align="left"> <display:column property="b_no" title="B_NO"/></th>
<th align="left"> <display:column property="call_duration" title="CALL_DURATION"/></th>
<th align="left"> <display:column property="start_day" title="START_DAY"/></th>
<th align="left"> <display:column property="end_day" title="END_DAY"/></th>
<th align="left"> <display:column property="a_home_circle" title="A_HOME_CIRCLE"/></th>
<th align="left"> <display:column property="a_rome_circle" title="A_ROME_CIRCLE"/></th>
<th align="left"> <display:column property="a_imei" title="A_IMEI"/></th>
<th align="left"> <display:column property="a_imsi" title="A_IMSI"/></th>
<display:setProperty name="export.excel.filename" value="ActorDetails.xls"/>
<display:setProperty name="export.pdf.filename" value="ActorDetails.pdf"/>
<display:setProperty name="export.pdf" value="true" />
</display:table>
<action input="/" name="DetailsFormBean" path="/search" scope="session" type="com.homeland.action.HomeLandPersonalAction" parameter="search">
<forward name="found" path="/searchpage.jsp"/>
</action>
表自败....请人帮忙
它的工作对我来说,我已经发布的代码,但我需要的功能在我的表 – lucifer
感谢您YOUE帮助其工作now..can你解释一件事是什么是<显示:的setProperty名称=” export.excel.filename“value =”ActorDetails.xls“/> 事情我不明白,如果这件事你可以解释我会妥善解决它 –
lucifer
欢迎。请接受答案。请通过http://www.displaytag.org/10/tagreference-displaytag-12.html –