通过form表单请求servlet资源代码

<html>
<body>
<form action="/zjbWeb1/MyHttpServlet" method="get">
userName:<input type="text" name="userName"/>
<input type="submit" value="登录"/>
</form>
</body>
</html>

注:zjbWeb1为web站点名称,MyHttpServlet为servlet-pattern名称。

posted @ 2015-03-29 20:55  zhangjb_tech  阅读(212)  评论(0)    收藏  举报