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
Description: TableTag.java
BufferedResponseWrapper.java
Description: BufferedResponseWrapper.java
ResponseOverrideFilter.java
Description: ResponseOverrideFilter.java
