I am using Displaytag framework for pagination & exporting purpose. In that i am also using Strut2Tiles Integration.
Whenever i am calling any action class it will returning me a list & through Displaytag i am successfully displaying record on my page. For that my jsp page's code looks like :
RemoveUpdate
Actually this page is displaying through tiles configuration.
Here i have enabled the export option, so it is showing me the exporting options like CSV, EXCEL, XML. But whenver i am clicking on that CSV link, my web browser hanged, means nothing is displayed on it
For that exporting solution i have also added filter in my web.xml. My web.xml looks like:
struts2org.apache.struts2.dispatcher.FilterDispatcherstruts2/*ResponseOverrideFilterorg.displaytag.filter.ResponseOverrideFilterResponseOverrideFilter*.actionResponseOverrideFilter*.jsporg.apache.struts2.tiles.StrutsTilesListenerorg.springframework.web.context.ContextLoaderListenercontextConfigLocation/WEB-INF/classes/webApplicationContext.xmljsp/welcome.jsp
I have also included following list of libraries of displaytag :
1) displaytag-1.2.jar
2) displaytag-export-poi-1.2.jar
3) displaytag-portlet-1.2.jar
The exception that i am getting is :
2009-05-09 12:02:38,234 DEBUG (org.displaytag.tags.TableTag:1524) - Exportfilter NOT enabled
2009-05-09 12:02:38,312 WARN (org.displaytag.tags.TableTag:63) - 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).
ApplicationDispatcher[/PaginationTry2] PWC1231: Servlet.service() for servlet jsp threw exception
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).
Plz reply, i am stuck with this problem.
I may be misreading your web.xml snippet, but I don't believe you're developing a portlet, so you don't need need displaytag-portlet-1.2.jar in your project (not that including it should cause any problems).
以上就是Displaytag export option is not working的详细内容,更多请关注web前端其它相关文章!