建立自己的Servlet:
1.举的这个例子是一个页面提交信息到servlet,文件内容如下:
form.xml文件:
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=Windows-31J">
</head>
<body>
<form method="post" action="../Test"> //(1)method、actionの指定
<input type="text" name="name1"><br><br>
<input type="checkbox" name="vehicle" value="車">車<br>
<input type="checkbox" name="vehicle" value="バイク">バイク<br>
<input type="checkbox" name="vehicle" value="飛行機">飛行機<br><br>
<input type="submit" value="submit">
</form>
</body>