servlet基础
jsp的前身就是servlet
tomecat容器分为四个等级
- servelt 程序
1. 继承httpServlet 实现了http协议的servelt
2. 重写doGet() doPost() 方法
public class HelloServelt extends HttpServelet {
@Override
protected void doGet(HttpServletRquest req, HttpServletResponse res)
throws ServletException, IOException {
}
}