我的代码其实很简单的,可是怎么弄都出这个错误
好像意思是得不到这个请求资源....
package com.home.text;
import
import javax.security.sasl.SaslException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Home extends HttpServlet{
public Home(){
super();
}
public void destroy(){
super.destroy();
}
public void doGet(HttpServletRequest requst,HttpServletResponse response)
throws ServletException,IOException{
this.doGet(requst, response);
}
public void doPost(HttpServlet requst,HttpServletResponse response)
throws ServletException,IOException{
String name = requst.getInitParameter("name");
String password = requst.getInitParameter("password");
String errormessage = "";
if(name == null || name.equals("")){
errormessage="姓名为空";
}else if(password == null || password.equals("")){
errormessage="密码为空";
}else {
System.out.println("登陆成功");
}
}
public void init() throws ServletException{
}
}