• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Content-type changing somewhere
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Content-type changing somewhere
      • From: Miguel Arroz <email@hidden>
References: 
 >Content-type changing somewhere (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Re: Content-type changing somewhere
  • Next by Date: Re: Content-type changing somewhere
  • Previous by thread: Re: Content-type changing somewhere
  • Next by thread: Re: Content-type changing somewhere
  • Index(es):
    • Date
    • Thread