<%@ page language="java" contentType="text/html;pageEncoding=GB2312"%><html>
<body>
<form method = "post" action = "/FirstServlet">
用户名:<input type = "text" name = "username" size = "15"><br><br>
密&nbsp&nbsp码:<input type = "password" name = "password" size = "15"><br><br>
<input type = "submit" name = "submit" value = "登录"><br>
</form>
</body>
</html>
试试

解决方案 »

  1.   

    不行啊,提示
    HTTP Status 404 - /FirstServlet--------------------------------------------------------------------------------type Status reportmessage /FirstServletdescription The requested resource (/FirstServlet) is not available.
      

  2.   

    不行啊,提示 
    HTTP Status 404 - /FirstServlet 你把跳转后的servlet路径贴出来。我觉得应该是路径问题
      

  3.   

    找到错误了,servlet中没有import package;