作者linshihpong (splin)
看板java
标题Re: [JSP ] 如何使用JSP执行外部程式
时间Thu Jan 18 23:27:05 2007
※ 引述《[email protected] (苏怡华 很!烦!ㄟ!)》之铭言:
: ※ 引述《[email protected] (舞佾江月任八方N )》之铭言:
: > Runtime o_run = Runtime.getRuntime();
: > o_run.exec("GA200_onemonth.exe /c C:\Tomcat 5.5\webapps\ROOT\jsptest\45\GA200_onemonth.exe");
: 这个地方如果不能执行应该会有exception发生
: catch然後印出来(当然是印到html...)
: application server可能有policy限制某些动作可以执行..某些不行
: http://tomcat.apache.org/tomcat-3.2-doc/uguide/tomcat-security-unix.html
: 像是这个
发问的那位板友要不要把部分错误讯息po上来让大家看看呢?
我把那些程式码放在resin里是可以顺利启动的....
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.136.194.236