You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ganesh gadi <ga...@yahoo.com> on 2004/07/16 10:49:34 UTC

how to get control over "File Download" Dialogue Box ...Very urgent please

Hi Friends,

i'm very happy to tell u my problems and get answers.

i need a solution how to disable "open" button on 
"File Download" dialog box.i want control on it.
Pls don't say no solution.Bcox i saw that type of
dialogue box...Now i require that feature.
pls let me know the solution asap.

I used the following code to appear "File Download
box"

httpServletResponse.setContentLength((int) f.length));
              
httpServletResponse.setContentType(mimeType);
               
httpServletResponse.setHeader("Content-Disposition","attachment;filename="+f.getName());

os =httpServletResponse.getOutputStream();
                stream = new FileInputStream(f);
                bis = new BufferedInputStream(stream);
                is = new BufferedInputStream(bis);
                int count;
                byte buf[] = new byte[4096];
                while ((count = is.read(buf)) > -1)
                os.write(buf, 0, count);


i'm using 
tomcat 5.0.19
Struts 1.1
IE 6.0
Windows 2000server

Thanks
Ganesh


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: how to get control over "File Download" Dialogue Box ...Very urgent please

Posted by Emmanouil Batsis <Em...@eurodyn.com>.
Hi,

ganesh gadi wrote:

>Hi Friends,
>
>i'm very happy to tell u my problems and get answers.
>

I dont think you will get answers by sending the same email with three 
different subjects within four minutes. 

Manos

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org