[ http://jira.codehaus.org/browse/DISPL-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109134 ]
Pramod commented on DISPL-343: ------------------------------ Well, I don't get the exception like the one in issue logs, but when I try to export the second table, the generated PDF contains the data from table1 and not from table2. I am showing both the tables together in a single page. If I assign UIDs / IDs / HTMLIDs for the tables, then export to second table creates a core dump. Let me know if there is any workaround to get the exported PDF for table2 also. Thanks Pramod > Export does not work for the second table of a page containing two tables > ------------------------------------------------------------------------- > > Key: DISPL-343 > URL: http://jira.codehaus.org/browse/DISPL-343 > Project: DisplayTag > Issue Type: Bug > Components: Export > Affects Versions: 1.1 > Reporter: Nicolas Ternisien > Fix For: TBD > > > When you try to export the content (in CVS, Excel or XML format) of a second > table in a page, this generate the following exception : > An exception was thrown: 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). > With the following stack trace: > 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:1430) > at org.displaytag.tags.TableTag.doExport(TableTag.java:1356) > at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1227) > at > org.apache.jsp.personneCommissionImputationList_jsp._jspService(personneCommissionImputationList_jsp.java:445) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:627) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382) > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:306) > at > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) > at > org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) > at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:696) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) > at > com.omnigain.credit.immo.strutsFilter.SessionFilter.doFilter(SessionFilter.java:66) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:166) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) > at > com.omnigain.persistence.filter.HibernateFilter.doFilter(HibernateFilter.java:48) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:166) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) > at > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) > at java.lang.Thread.run(Thread.java:595) > The only solution found is to prevent first table displaying using this code : > > <% > //"result" is the id of the second table > ParamEncoder paramEncoder=new ParamEncoder("result"); > String > parameter=paramEncoder.encodeParameterName(TableTagParameters.PARAMETER_EXPORTTYPE); > out.println("parameter" + parameter); > > if (request.getParameter(parameter)==null) { > %> > <display:table id="... > > <% > } > %> > Something really strange is that sorting and other features works correctly > for both tables. > Thanks by advance. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel