首页 > 技术文章 > 通过form表单请求servlet资源代码

zhang-tech 2015-03-29 20:55 原文

<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名称。

推荐阅读