Código:
el codigo que tengo es este:GRAVE: El Servlet.service() para servlet jsp lanz� una excepci�n Exception: [.TableTag] Unable to reset response before returning exported data. You are not using an export filter. Be sure that no other jsp tags are used before display:table or refer to the displaytag documentation on how to configure the export filter (requires j2ee 1.3). at org.displaytag.tags.TableTag.writeExport(TableTag.java:1528) at org.displaytag.tags.TableTag.doExport(TableTag.java:1454) at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1309)
En la JSP:
Código PHP:
<display:table name="sessionScope.managerUserForm.listaUsuarios" export="true" id="result"
requestURI="/managerUser.do" pagesize="5" >
<display:column property="nombre" title="Nombre" sortable="true" />
<display:column property="apellido1" title="Apellido1" sortable="true" />
<display:column property="apellido2" title="Apellido2" sortable="true" />
<display:column property="email" title="Email" sortable="true" />
<display:column property="telefono" title="Telefono" sortable="true" />
</display:table>
Código PHP:
locale.resolver=org.displaytag.localization.I18nStrutsAdapter
locale.provider=org.displaytag.localization.I18nStrutsAdapter
export.types=csv excel xml pdf rtf
export.excel=true
export.csv=false
export.xml=false
export.pdf=true
export.rtf=false
export.excel.class=org.displaytag.export.excel.DefaultHssfExportView
export.pdf.class=org.displaytag.export.DefaultPdfExportView
export.rtf.class=org.displaytag.export.DefaultRtfExportView
Código PHP:
<!-- Displaytag export filter -->
<filter>
<filter-name>ResponseOverrideFilter</filter-name>
<filter-class>
org.displaytag.filter.ResponseOverrideFilter
</filter-class>
</filter>
<!-- URLs the filter will intercept -->
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<!-- Displaytag export filter -->