1. package com.sanqing.dao; import java.util.List; import com.sanqing.bean.Vote; import com.sanqing.util.Page; public interface VoteDAO { public void addVote(Vote vote); //添加投票 public void updateVote(Vote vote); //更新投票 public void deleteVote(int vote…
1.index.jsp <%@ page language="java" import="java.util.*" pageEncoding="gbk"%> <%@ taglib prefix="s" uri="/struts-tags" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN&…
1. package com.sanqing.action; import java.util.UUID; import com.opensymphony.xwork2.ActionSupport; import com.sanqing.bean.Vote; import com.sanqing.bean.VoteOption; import com.sanqing.dao.VoteDAO; import com.sanqing.dao.VoteOptionDAO; import com.san…
1.项目结构 2.数据库设计 # MySQL-Front 5.0 (Build 1.0) /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON'…
1. package com.sanqing.bean; /** * * 投票选项类 * */ public class VoteOption { private int voteOptionID; //投票选项ID private int voteID; //投票ID private String voteOptionName; //投票选项名称 private int ticketNum; public int getVoteOptionID() { return voteOptionID;…
1. <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jav…
0. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <con…
1. 2.back_index.html <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=gbk"> <TITLE>报价管理系统</TITLE> </HEAD> <FRAMESET cols = "130,*" frameborder=yes bordercolor=sil…
1. <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/…
1. package com.sanqing.service; import com.sanqing.dao.DAO; import com.sanqing.po.Customer; /** * 客户业务接口 */ public interface CustomerService extends DAO<Customer> { } 2. package com.sanqing.service; import com.sanqing.dao.DAO; import com.sanqing.po.…