dcsimg
"Content-Disposition" and "Cache-Control"
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   pranesh_m
Posted On:   Thursday, January 26, 2006 02:21 AM

Im using Weblogic 8.l On File Download i am getting a error Error - fail when both "Content-Disposition" and "Cache-Control" are set.> I am using IE browser to download the file I have added my code below this.getResponse().setContentType("application/download"); this.getResponse().setHeader("Content-Disposition", "attachment; filename=""+fileName+ """); Eagerly waiting for your suggestion Regards Pranesh    More>>



Im using Weblogic 8.l

On File Download i am getting a error

Error -
fail when both "Content-Disposition" and "Cache-Control" are set.>


I am using IE browser to download the file

I have added my code below

this.getResponse().setContentType("application/download");

this.getResponse().setHeader("Content-Disposition", "attachment; filename=""+fileName+ """);





Eagerly waiting for your suggestion




Regards

Pranesh

   <<Less

Re: "Content-Disposition" and "Cache-Control"

Posted By:   Almagest_FUTT  
Posted On:   Thursday, January 26, 2006 08:18 AM


  1. "application/download" is no valid MIME-type.

  2. this.getResponse().removeHeader("Cache-Control") || this.getResponse().setHeader("Cache-Control", null) ?

  3. Pray, what is it you want ?

About | Sitemap | Contact