> From: Allistair Crossley [mailto:[EMAIL PROTECTED] > Subject: RE: newbie with a short question > > First I cause an open/save prompt with > > response.addHeader("Content-Disposition", "attachment; > filename=somebat.bat"); > > Then I use the response.getOutputStream() and stream the bat > file down it. This requires of course that you get an > inputstream to your bat file first. Copy it into your webapp > somewhere and use the servlet context > getRealPath("/bat/mybat.bat") and then i/o API to read it > into an input stream before sending outbound again. > > I found that setting content type of > application/msdos-x-batch failed, as did others, just send it > without a content type as a open/save.
I must be missing something; how does the above cause an existing .bat file on the server to be executed on the server? (That was the original question.) For the OP: the CGI doc for Tomcat can be found at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]