Thanks!
Matt
On Monday, September 29, 2003, at 10:17 AM, Andy Pruitt wrote:
Ok, here is a fix for the dreaded "no export in tiles or included jsps" problem.
This fix allows exports to work seamlessly, without requiring the JSP author to duplicate the table tag, although it does require a filter to be added to web.xml.
The trick is that I changed the writeExport() method of TableTag to
write the output into the Request object instead of to the page. A
filter then checks for overriding content, and if content is present the
filter will dump the page response and substitute in the overriding
content.
It's a hack, but it works.
Change display.tld: <tag> <name>table</name> <tagclass>com.backstopsolutions.web.TableTag</tagclass> <!-- <tagclass>org.displaytag.tags.TableTag</tagclass>-->
To your web.xml: <filter> <filter-name>ResponseOverrideFilter</filter-name>
<filter-class>com.backstopsolutions.web.ResponseOverrideFilter</ filter-c
lass>
</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>
</filter-mapping>
---andy pruitt
<TableTag.java><BufferedResponseWrapper.java><ResponseOverrideFilter.ja va>
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel
