You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mi...@barclayscapital.com on 2004/07/16 10:56:27 UTC

RE: How to Disable "open" button on "File Download" dialogue box. ...please urgent

Ganesh, why do you always ask your question 3 times? And your questions are
always urgent?

-----Original Message-----
From: ganesh gadi [mailto:ganeshi2t2@yahoo.com] 
Sent: 16 July 2004 09:52
To: user@struts.apache.org
Subject: How to Disable "open" button on "File Download" dialogue
box....please urgent


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 Address AutoComplete - You start. We finish.
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


------------------------------------------------------------------------
For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.

------------------------------------------------------------------------


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