如何调用cgi程序
用的是eclipse+tomcat6.0
动态web工程,
html内容如下:
<html>
<head>
<title>CGI Testing</title>
</head>
<body>
<table width="200" height="180" border="0" style="font-size:12px">
<tr><td>
<div style="font-weight:bold; font-size:15px">Method: GET</div>
<div>please input two number:<div>
<form method="get" action="/cgi-bin/get.exe">
<input type="txt" size="3" name="a">+
<input type="txt" size="3" name="b">=
<input type="submit" value="sum">
</form>
</td></tr>
</table>
</body>
</html>
我想用这个页面测试一下cgi程序的调用
在web工程目录如下:
test /
webcontent/
testCgi.html(内容在上面)
web-inf/
cgi-bin/
get.exe
但是在html页面每次提交后,显示的链接http://localhost:8080/cgi-bin/get.exe?a=1&b=1,链接中没有工程名字
并且报如下的错误:
HTTP Status 404 - /cgi-bin/get.exe
--------------------------------------------------------------------------------
type Status report
message /cgi-bin/get.exe
description The requested resource (/cgi-bin/get.exe) is not available.
哪位能指点一下html中的get.exe应该怎么写