I am using the display taglib in my struts application and it works great.
The only thing I can't figure out is how to use the export feature to get my lists into Excel files, because every time I add the filter configuration to my web.xml all affected JSP's cause server errors.
Here is my configuration: Tomcat 5.0.16, Displaytag-1.0-b3, the latest jakarta commons*.
What works: My application uses tiles. The basic layout has head and body tile. The body tile contains the display tag.
Without using filters in web.xml paging works. Also the export "works", but the results are displayed inside the html result.
To get only the excel export I added this to my web.xml:
<filter>
<filter-name>ResponseOverrideFilter</filter-name><filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>/edit/PersOrgList.jsp</url-pattern>
</filter-mapping>After restarting the webapp the page /edit/PersOrgList.jsp causes this tomcat exception:
---------------------------------------------------------------------------
java.io.IOException: Stream closed
org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:246)
org.apache.jasper.runtime.JspWriterImpl.clearBuffer(JspWriterImpl.java:201) org.apache.jsp.WEB_002dINF.portlets.pers.edit.homeLayout_jsp._jspService(homeLayout_jsp.java:112)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:87)
-------------------------------------------------------------------------
Probably important: this exception is already thrown in the layout JSP and not in the bodytile which contains the displaytag.
In my body JSP I have this code:
.....
<display:table
name="pers"
export="true"
class="simple"
pagesize="20"
requestURI="<%= response.encodeUrl("PersOrgList.jsp") %>">
<display:column property="name2" title="Name" group="1" />
<display:column property="pers_titel" title="Titel" group="2" />
<display:column property="raum" title="Raum"/>
<display:column property="telefon" title="Telefon"/>
<display:column property="email" title="Email"/>
<display:column property="org_name" title="Einrichtung"/>
</display:table>
.....Can someone tell what I'm missing ? I don't have any further ideas ...
Best regards,
Henning-- Dipl.-Inform. Henning Brune Universit�t Bielefeld Dezernat I Postfach 10 01 31 33501 Bielefeld Tel.: 0521/106-3186 Fax : 0521/106-6464 Raum: B3-140 http://bis.uni-bielefeld.de/
------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id�66&op=click _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

