1.public class servletName extends HttpServlet{
protected void doGet(HttpServletRequest req,HttpServletResponse resp) throws ServletException,IOException{
super.doGet(req,resp);
}
protected void doPost(HttpServletRequest req,HttpServletResponse resp) throws ServletException,IoException{
super.doPost(req,resp);
}