AddOrDelNumberServlet
时间:2010-07-06 来源:mozhx
package com.newspager.servlet;
import java.io.IOException;
import java.io.PrintWriter; import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import com.newspager.dao.AddNumberDAO;
import com.newspager.dao.TempNumberDAO;
import com.newspager.dao.impl.AddNumberDAOImpl;
import com.newspager.dao.impl.TempNumberImpl;
import com.newspager.model.AddNumber;
import com.newspager.model.TempNumber; public class AddOrDelNumberServlet extends HttpServlet { /**
*
*/
private static final long serialVersionUID = 1L;
protected void processRequest (HttpServletRequest request,
HttpServletResponse response, String method)
throws ServletException, IOException {
//System.out.println("servlet222");
//把响应内容类型设置为 text/xml
response.setContentType("text/xml");
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server int userId = 0;
int pagerId = 0;
int num = 0;
String pweek;
//得到用户参数值
String uid = "";
String pgid = "";
String amount = "";
uid = request.getParameter("userId");
pgid = request.getParameter("pagerId");
amount = request.getParameter("amount");
import java.io.PrintWriter; import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import com.newspager.dao.AddNumberDAO;
import com.newspager.dao.TempNumberDAO;
import com.newspager.dao.impl.AddNumberDAOImpl;
import com.newspager.dao.impl.TempNumberImpl;
import com.newspager.model.AddNumber;
import com.newspager.model.TempNumber; public class AddOrDelNumberServlet extends HttpServlet { /**
*
*/
private static final long serialVersionUID = 1L;
protected void processRequest (HttpServletRequest request,
HttpServletResponse response, String method)
throws ServletException, IOException {
//System.out.println("servlet222");
//把响应内容类型设置为 text/xml
response.setContentType("text/xml");
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server int userId = 0;
int pagerId = 0;
int num = 0;
String pweek;
//得到用户参数值
String uid = "";
String pgid = "";
String amount = "";
uid = request.getParameter("userId");
pgid = request.getParameter("pagerId");
amount = request.getParameter("amount");
相关阅读 更多 +