<%@ page language="java" contentType="text/html;pageEncoding=GB2312"%><html>
<body>
<form method = "post" action = "/FirstServlet">
用户名:<input type = "text" name = "username" size = "15"><br><br>
密  码:<input type = "password" name = "password" size = "15"><br><br>
<input type = "submit" name = "submit" value = "登录"><br>
</form>
</body>
</html>
试试
<body>
<form method = "post" action = "/FirstServlet">
用户名:<input type = "text" name = "username" size = "15"><br><br>
密  码:<input type = "password" name = "password" size = "15"><br><br>
<input type = "submit" name = "submit" value = "登录"><br>
</form>
</body>
</html>
试试
HTTP Status 404 - /FirstServlet--------------------------------------------------------------------------------type Status reportmessage /FirstServletdescription The requested resource (/FirstServlet) is not available.
HTTP Status 404 - /FirstServlet 你把跳转后的servlet路径贴出来。我觉得应该是路径问题