jsp工作总结(4)
2016-10-3编辑:sunny
简单servlet***************************************************
package servlet;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;
import bean.DBBean;
import bean.userinfoBean;
public class userlogin extends HttpServlet{
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws IOException, ServletException{}
public void service(HttpServletRequest request,HttpServletResponse response)
throws IOException, ServletException{
try{
}catch(SQLException ex){}
}
public void doPost(HttpServletRequest request,HttpServletResponse response)
throws IOException, ServletException
{doGet(request,response);
}
}