Bugs item #882056, was opened at 2004-01-22 05:23 Message generated for change (Settings changed) made by rapruitt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536613&aid=882056&group_id=73068
Category: export Group: None >Status: Closed Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Export error - Filter not working Initial Comment: I have problems exporting data with DisplayTag and Tomcat 4.0.15, so I tried the new ResponseOverrideFilter . But the filter it's not working. I look a little in the code and i think that the problem is that: - In ResponseOverrideFilter CONTENT_OVERRIDE_BODY and CONTENT_OVERRIDE_TYPE are defined like that ResponseOverrideFilter.class.getName() + "CONTENT_OVERRIDE_BODY"; Note that there are not point between the className and the string constant. - And in the TableTag it search the request for the parameter with point like that: StringBuffer bodyBuffer = (StringBuffer) request.getAttribute("org.displaytag.filter. ResponseOverrideFilter.CONTENT_OVERRIDE_BODY"); So the ResponseOverrideFilter is never used really. I try the ResponseOverrideFilter with the right definition of CONTENT_OVERRIDE_BODY and CONTENT_OVERRIDE_TYPE and it's working althougth Tomcat trace a lot of "java.lang.IllegalStateException: Cannot call getWriter() after getOutputStream()". ---------------------------------------------------------------------- Comment By: Matt Raible (mraible) Date: 2004-01-23 08:12 Message: Logged In: YES user_id=226669 Fixed in CVS. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-01-22 09:03 Message: Logged In: NO I'm happy to help :). By the way, the IllegalStateException that i got are happening because there are some conflicts between SiteMesh (that i are using) and the ResponseOverrideFilter. ---------------------------------------------------------------------- Comment By: Matt Raible (mraible) Date: 2004-01-22 08:03 Message: Logged In: YES user_id=226669 I tested this, and it DOES INDEED fix the problem. I patched the ResponseOverrideFilter and added a "." after getName(), and then patched TableTag to import ResponseOverrideFilter and used the names as variables, rather than as Strings. For example, request.getAttribute(ResponseOverrideFilter.CONTENT_OVERRIDE_BODY); Unfortunately, SF's CVS seems to be down right now, so I can't commit this. If CVS comes back up today, or someone else can access this, we should get it in there. Matt ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536613&aid=882056&group_id=73068 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel