package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.util.*;
import com.domain.BookForm;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write(" <link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<title>图书市场调查</title>\r\n");
out.write("</head>\r\n");
com.dao.VoteDao dao = null;
synchronized (request) {
dao = (com.dao.VoteDao) _jspx_page_context.getAttribute("dao", PageContext.REQUEST_SCOPE);
if (dao == null){
dao = new com.dao.VoteDao();
_jspx_page_context.setAttribute("dao", dao, PageContext.REQUEST_SCOPE);
}
}
out.write("\r\n");
out.write("<body>\r\n");
out.write("<br>\r\n");
String ID="user";
if(application.getAttribute("ID")==null){
out.write("\r\n");
out.write(" <form method=\"post\" action=\"voteAction.do?ID=");
out.print(ID);
out.write("\">\r\n");
out.write(" <table width=\"653\" height=\"479\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"612\" height=\"159\" valign=\"top\" background=\"show.jpg\" class=\"word\">\r\n");
out.write(" <p> </p>\r\n");
out.write(" <p> </p>\r\n");
out.write(" <p> </p>\r\n");
out.write(" <p> </p>\r\n");
out.write("\t\t\t <p> </p>\r\n");
out.write(" <blockquote>\r\n");
out.write(" <p align=\"left\"> 1、 您经常购买的编程类图书属于哪一类?</p>\r\n");
out.write(" <p align=\"left\"> \r\n");
out.write(" ");
List listOne=dao.voteSelect("1");
for(int one=0;one<listOne.size();one++){
BookForm oneForm=(BookForm)listOne.get(one);
out.write("\r\n");
out.write(" <input type=\"checkbox\" name=\"one");
out.print(one);
out.write("\" value=\"");
out.print(oneForm.getId());
out.write("\" style=\"border:0; \"> ");
out.print(oneForm.getName());
out.write(" \r\n");
}
out.write("\r\n");
out.write(" </p>\r\n");
out.write(" <p align=\"left\"> 2、 您使用下面哪种编程语言或工具?</p>\r\n");
out.write(" <p align=\"left\"> \r\n");
out.write(" ");
List listTwo=dao.voteSelect("2");
for(int two=0;two<listTwo.size();two++){
BookForm twoForm=(BookForm)listTwo.get(two);
out.write("\r\n");
out.write(" <input type=\"checkbox\" name=\"two");
out.print(two);
out.write("\" value=\"");
out.print(twoForm.getId());
out.write("\" style=\"border:0; \"> ");
out.print(twoForm.getName());
out.write(" \r\n");
out.write(" ");
}
out.write("\r\n");
out.write("\r\n");
out.write(" </p>\r\n");
out.write(" <p align=\"left\"> 3、 您最愿意购买或借阅哪类图书?</p>\r\n");
out.write(" <p align=\"left\"> \r\n");
out.write("\t\t\t ");
List listThree=dao.voteSelect("3");
for(int three=0;three<listThree.size();three++){
BookForm threeForm=(BookForm)listThree.get(three);
out.write("\r\n");
out.write(" <input type=\"checkbox\" name=\"three");
out.print(three);
out.write("\" value=\"");
out.print(threeForm.getId());
out.write("\" style=\"border:0; \"> ");
out.print(threeForm.getName());
out.write(" \r\n");
out.write(" ");
}
out.write("\r\n");
out.write(" </p>\r\n");
out.write(" </blockquote>\r\n");
out.write(" <p align=\"center\">\r\n");
out.write(" <table width=\"653\" border=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"457\"> </td>\r\n");
out.write(" <td width=\"145\"><input type=\"image\" name=\"submit\" src=\"sure.jpg\" ></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write(" <p align=\"left\"> </p>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("\t </form>\r\n");
out.write("\t ");
}else{
response.sendRedirect("voteResulet.jsp");
}
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
jsp+struts技术开发的在线投票系统(源代码).
共113个文件
class:15个
java:10个
jar:10个
4星 · 超过85%的资源 需积分: 10 186 下载量 71 浏览量
2008-11-29
13:06:22
上传
评论 3
收藏 2.11MB RAR 举报
温馨提示
jsp+struts技术开发的在线投票系统(源代码).rar.........
资源推荐
资源详情
资源评论
收起资源包目录
jsp+struts技术开发的在线投票系统(源代码). (113个子文件)
index_jsp.class 7KB
index_jsp.class 6KB
voteResulet_jsp.class 6KB
voteResulet_jsp.class 5KB
resulet_jsp.class 3KB
resulet_jsp.class 3KB
JDBConnection.class 3KB
JDBConnection.class 3KB
VoteAction.class 2KB
VoteAction.class 2KB
VoteDao.class 2KB
VoteDao.class 2KB
BookForm.class 1KB
BookForm.class 1KB
SessionLib.class 368B
style.css 2KB
org.apache.jsp.dep2 8KB
com.dao.dep2 3KB
com.action.dep2 2KB
com.domain.dep2 736B
程序使用说明.doc 356KB
vote.index 8KB
struts.jar 514KB
antlr.jar 379KB
jtds-0.8.1.jar 250KB
commons-collections.jar 171KB
commons-beanutils.jar 116KB
commons-digester.jar 107KB
commons-validator.jar 82KB
jakarta-oro.jar 64KB
commons-logging.jar 37KB
commons-fileupload.jar 22KB
index_jsp.java 7KB
voteResulet_jsp.java 6KB
index_jsp.java 6KB
voteResulet_jsp.java 5KB
resulet_jsp.java 2KB
resulet_jsp.java 2KB
JDBConnection.java 2KB
VoteAction.java 1KB
VoteDao.java 1KB
BookForm.java 962B
VoteAction.java~10~ 2KB
VoteDao.java~10~ 909B
JDBConnection.java~1~ 2KB
BookForm.java~1~ 2KB
VoteAction.java~1~ 751B
VoteDao.java~1~ 49B
JDBConnection.java~2~ 2KB
BookForm.java~2~ 1KB
VoteAction.java~2~ 682B
VoteDao.java~2~ 157B
BookForm.java~3~ 1KB
VoteAction.java~3~ 811B
VoteDao.java~3~ 511B
BookForm.java~4~ 1KB
VoteAction.java~4~ 1KB
VoteDao.java~4~ 891B
VoteAction.java~5~ 2KB
BookForm.java~5~ 1KB
VoteDao.java~5~ 909B
VoteAction.java~6~ 2KB
BookForm.java~6~ 1KB
VoteDao.java~6~ 985B
VoteAction.java~7~ 2KB
BookForm.java~7~ 1009B
VoteDao.java~7~ 937B
VoteAction.java~8~ 2KB
VoteDao.java~8~ 907B
VoteAction.java~9~ 2KB
VoteDao.java~9~ 907B
show.jpg 53KB
sure.jpg 17KB
vote.jpx 8KB
index.jsp 3KB
voteResulet.jsp 2KB
resulet.jsp 420B
resulet.jsp~1~ 527B
index.jsp~28~ 3KB
index.jsp~29~ 2KB
resulet.jsp~2~ 533B
index.jsp~30~ 2KB
index.jsp~31~ 2KB
index.jsp~32~ 3KB
index.jsp~33~ 3KB
index.jsp~34~ 3KB
index.jsp~35~ 3KB
index.jsp~36~ 3KB
index.jsp~37~ 3KB
resulet.jsp~3~ 460B
db_vote_Log.LDF 1024KB
Servlet.library 285B
vote.jpx.local 4KB
vote.jpx.local~ 4KB
db_vote_Data.MDF 1.13MB
ApplicationResources.properties 0B
ApplicationResources.properties 0B
ApplicationResources.properties 0B
tldCache.ser 44B
web.xml 864B
共 113 条
- 1
- 2
资源评论
- weijiadi2012-08-30没有办法直接运行
muguangkui
- 粉丝: 14
- 资源: 319
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功