Re: Content-type changing somewhere
Re: Content-type changing somewhere
- Subject: Re: Content-type changing somewhere
- From: Mike Schrag <email@hidden>
- Date: Fri, 12 Oct 2007 16:21:32 -0400
My problem is in the content type. On the element code, I do:
response.setHeader(contentType, "Content-Type");
Where exactly are you doing this? You mention have a component with
another component in it that sets the content type. But if you're
sending an xls back, that needs to come from a component that is ONLY
sending back XLS for the entire page. Just clarifying ... You can't
have like HTML components at the top and then some XLS in the
middle. Incidentally, I use:
response.setHeader("application/pdf; name=\"" + filename +
"\"", "Content-Type");
response.setHeader("attachment; filename=\"" + filename +
"\"", "Content-Disposition");
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden