Run an exe file from JSP
Posted on 2001-09-18
I would like to execute an exe file from a JSP page. How should i do that? The JSP page and the exe file are located in the same server.
I have a jsp page(RunExe.jsp) which need to execute an exe file that located at C:\ExeFile\ExeFile.exe
When user request the RunExe.jsp, the jsp page will pass some parameter to ExeFile.exe and execute it. After that the ExeFile.exe will return the result back to the RunExe.jsp and the result will displayed out.
How should i do that? What package should i import? Need advise and example code. Appreciate any help.