Bugs item #882056, was opened at 2004-01-22 04:23
Message generated for change (Comment added) made by mraible
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=882056&group_id=73068

Category: export
Group: None
Status: Open
>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 07:12

Message:
Logged In: YES 
user_id=226669

Fixed in CVS.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2004-01-22 08: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 07: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


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to