日期:2014-05-18 浏览次数:20760 次
<body>
<form name="qForm" action="QueryUser" method="post">
请输入查询条件:<input type="text" id="condition">
<input type="submit" value="查询">
</form>
</body>
package com.servlet.db;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class QueryUser
extends HttpServlet
{
private static final long serialVersionUID = 1L;
private String driver;
private String url;
private String user;
private String pass;
@Override
public void init(ServletConfig config)
throws ServletException
{
super.init(config);
}
@Override
public void service(HttpServletRequest request, HttpServletResponse response)
throws IOException
{
System.out.println("service方法进入...");