Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4781410 By: nasrin_ak
Hi, Im trying to export data to an excel file but do not succeed. I have locked at the examples , http://displaytag.homeip.net/displaytag-examples-1.1/example-export.jsp, but can not get it to work. The example shows exactly what i want to achive. Here is parts of my jsp code: <dt:table name="userVOList" id="uservo" cellspacing="0" export="true" requestURI="userSearch" cellpadding="2" decorator="com.teliasonera.wal.www.decorator.UserSearchDecorator"> <dt:setProperty name="export.pdf.filename" value="example.pdf" /> <dt:setProperty name="export.rtf.filename" value="example.rtf" /> <dt:setProperty name="export.excel.filename" value="example.xls" /> <dt:setProperty name="export.csv" value="false" /> <dt:setProperty name="export.xml" value="false" /> <dt:setProperty name="export.excel.class" value="org.displaytag.export.ExcelView" /> As you can see i have set the "export" attribute to true and the Excel link appears at the end of my table in the jsp page. When I press the "excel link" I am redirected to the same page again!! What am I missing ? Do I need to configure something in my xwork.xml file or what ? I hav put this in my web.xml file: filter-name>ResponseOverrideFilter</filter-name> <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class> </filter> <filter-mapping> <filter-name>ResponseOverrideFilter</filter-name> <url-pattern>*.do</url-pattern> </filter-mapping> <filter-mapping> <filter-name>ResponseOverrideFilter</filter-name> <url-pattern>*.jsp</url-pattern> What am i missing ? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=249318 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user