文件名称:jsp网上投票系统myeclipse开发
文件大小:46KB
文件格式:RAR
更新时间:2014-05-15 14:08:57
jsp +myeclipse + 投票系统
import java.io.IOException;
import java.io.PrintWriter;
import java.util.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author xiaoq
*
*/
public class AddVoteServlet extends HttpServlet {
/**
* Constructor of the object.
*/
public AddVoteServlet() {
super();
}
/**
* Destruction of the servlet.
*/
public void destroy() {
super.destroy(); // Just puts "destroy" string in log
// Put your code here
}
/**
* The doPost method of the servlet.
*
* This method is called when a form has its tag value method equals to post.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=GBK");
PrintWriter out = response.getWriter();
out.println("");
out.println("
【文件预览】:
jsp网上投票系统
----jsp网上投票系统()
--------vote()