well, if you really _must_ write web server code in a bat file, you'll need
to configure the web server such that the bat file extension is treated as a
CGI program rather than as some text to be served to the browser.
However, if you've got a JSP file you clearly are running in a java
environment. why not make a JSP which runs the bat file (or better still,
one that does the processing that's currently coded as batch script). then
just point the button at the URL for the JSP
<ian.irlandez@gmail.com> wrote in message
news:1118789854.076248.164400@g43g2000cwa.googlegroups.com...
> I'd need to execute it on the server. Currently I have a jsp file, and
> I want a bat file to run when a button is pressed. I've seen people
> say that I can use scriptlets and use java to invoke the exec() method,
> but I've had no luck getting that to work. I later saw a suggestion of
> using document.location.href='xxx.bat';. I tried that and I've had
> some luck, such that the browser will at least display the code in the
> browser, but I'd want the bat file to execute on the server, and not on
> the client.
>
Received on Tue Oct 18 02:44:48 2005