+1

Andrew Hill wrote:

Try here:
http://www.catb.org/~esr/faqs/smart-questions.html


ganesh gadi wrote:

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to