编程开发 > JSP > 文章内容

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);
}
                                            }
jsp工作总结(1)

热点推荐

登录注册
触屏版电脑版网站地图