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