java菜鸟的Editplus 2+Tomcat 的问题,大伙来看看
参照这篇文章学习jsp http://www.itpub.net/249819.html
代码如下
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Test extends HttpServlet
{
public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html><head><title>");
out.println("This is my first Servlet");
out.println("</title></head><body>");
out.println("<h1>Hello,World!</h1>");
out.println("</body></html>");
}
}
错误为 Exception in thread "main" java.lang.nosuchmethodError:mian
网大虾赐教,不要刚学习就被打击信心了