Ben,

I'll offer my understanding of what the filter does - hopefully someone
can either correct me or confirm it. 

> STEP 5: Optional. If you need to export data from an included 
> JSP page, such as from Struts, you should configure the 
> ResponseOverrideFilter in your web.xml. (You do not need the 
> filter if you do not use exports, or if you do not use the 
> table tag from a jsp page that is included inside of another
> page.) Configure the Filter in your web.xml:
> ...
> 
> 
> MY QUESTION:
> My question is this: what specific problem are we solving 
> here?  Could this be the same problem that was mentioned 
> today by Joshi from GS.com?  I would like to update this step 
> to speak directly to the problem this optional step is solving.

In the case where we are exporting the table, we want to let the
servlet/action/whatever handle the request, but completely change the
response we send out.  So, the filter basically goes like this:

  1. Create a dummy response object for the servlet/action/whatever
(BufferedResponseWrapper)
  2. Execute the servlet/action/whatever to extract the data
(filterChain.doFilter(request, wrapper);)
  3. Using the data provided in the request by the servlet/action/whatever
in step 2, output the CSV or Excel spreadsheet as required.

I must have missed the post by Joshi today so am not sure if this is the
same problem or not.

hth
dim

######################################################################
DISCLAIMER: 
This email and any attachment may contain confidential information.
If you are not the intended recipient you are not authorized to copy
or disclose all or any part of it without the prior written consent
of Toyota.

Opinions expressed in this email and any attachment are those of the
sender and not necessarily the opinions of Toyota.
Please scan this email and any attachment for viruses.
Toyota does not accept any responsibility for problems
caused by viruses, whether it is Toyota's fault or not.
######################################################################


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to