package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import sale_ticket.Ticket;
public final class sell_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
ArrayList ls=new ArrayList();
int num[]={1,2,3,4,5};
int m=0;
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_items;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_forEach_var_items = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_forEach_var_items.release();
}
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=GBK");
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");
sale_ticket.BaseDao DB = null;
synchronized (_jspx_page_context) {
DB = (sale_ticket.BaseDao) _jspx_page_context.getAttribute("DB", PageContext.PAGE_SCOPE);
if (DB == null){
DB = new sale_ticket.BaseDao();
_jspx_page_context.setAttribute("DB", DB, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write('\r');
out.write('\n');
ls=DB.getTicket();
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>\r\n");
out.write("sell\r\n");
out.write("</title>\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#ffffff\">\r\n");
out.write("<h1>\r\n");
out.write("销售电影票\r\n");
out.write("</h1>\r\n");
out.write("<form action=\"manage.jsp\" method=\"POST\">\r\n");
out.write("<table border=\"1\">\r\n");
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
_jspx_th_c_forEach_0.setParent(null);
_jspx_th_c_forEach_0.setVar("i");
_jspx_th_c_forEach_0.setItems(num);
int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
try {
int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("<tr><td>第");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${i}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("排</td>\r\n");
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_1 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_forEach_1.setPageContext(_jspx_page_context);
_jspx_th_c_forEach_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_forEach_1.setVar("j");
_jspx_th_c_forEach_1.setItems(num);
int[] _jspx_push_body_count_c_forEach_1 = new int[] { 0 };
try {
int _jspx_eval_c_forEach_1 = _jspx_th_c_forEach_1.doStartTag();
if (_jspx_eval_c_forEach_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\r\n");
Ticket tk=(Ticket)ls.get(m);
if(tk.getSign()==0){
out.write("\r\n");
out.write(" <td>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${j}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("号未售<input type=\"checkbox\" name=\"bought\" value=\"");
out.print(tk.getSeat());
out.write("\"/></td>\r\n");
out.write(" ");
}
else{
out.write("\r\n");
out.write(" <td bgcolor=\"red\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${j}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("号已售</td>\r\n");
out.write(" ");
}
m++;
if(m==ls.size()){
m=0;
}
out.write('\r');
out.write('\n');
int evalDoAfterBody = _jspx_th_c_forEach_1.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_forEach_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_forEach_1[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_forEach_1.doCatch(_jspx_exception);
} finally {
_jspx_th_c_forEach_1.doFinally();
_jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_1);
}
out.write("\r\n");
out.write("</tr>\r\n");
int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_forEach_0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_forEach_0.doFinally();
_jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
}
out.write("\r\n");
out.write("</table>\r\n");
out.write("<input type=\"hidden\" name=\"hidden\" value=\"1\"/>\r\n");
out.write("<input type=\"submit\" name=\"submit\" value=\"购买\"/>\r\n");
out.write("</form>\r\n");
out.write("<form action=\"manage.jsp\" method=\"POST\">\r\n");
out.write("<input type=\"hidden\" name=\"hidden\" value=\"0\" />\r\n");
out.write("<input type=\"reset\" name=\"reset\" value=\"清零\"/>\r\n");
out.write("</form>\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(
没有合适的资源?快使用搜索试试~ 我知道了~
jsp电影票销售servlet+iavabean
共66个文件
class:8个
java:6个
jar:4个
4星 · 超过85%的资源 需积分: 9 71 下载量 39 浏览量
2008-08-22
14:55:24
上传
评论 1
收藏 778KB RAR 举报
温馨提示
北大青鸟4.0jsp机试题/jsp电影票销售servlet+iavabean
资源推荐
资源详情
资源评论
收起资源包目录
电影票销售JSP.rar (66个子文件)
电影票销售JSP
db
TicketDB_Log.LDF 1024KB
TicketDB_Data.MDF 1024KB
sale_ticket
Tomcat
work
Web
org
apache
jsp
sell_jsp.class 7KB
sell_jsp.java 8KB
manage_jsp.java 3KB
manage_jsp.class 4KB
tldCache.ser 44B
webapps
Servlet.library 219B
sale_ticket.jpx.local 3KB
bak
sale_ticket
BaseDao.java~7~ 1KB
BaseDao.java~9~ 2KB
BaseDao.java~8~ 2KB
BaseDao.java~15~ 2KB
BaseDao.java~14~ 2KB
BaseDao.java~11~ 2KB
BaseDao.java~12~ 2KB
BaseDao.java~13~ 2KB
Ticket.java~1~ 377B
BaseDao.java~10~ 2KB
BaseDao.java~16~ 2KB
Web
manage.jsp~4~ 596B
manage.jsp~3~ 609B
manage.jsp~1~ 251B
sell.jsp~58~ 1KB
WEB-INF
web.xml~4~ 310B
web.xml~7~ 824B
web.xml~1~ 310B
web.xml~8~ 310B
web.xml~3~ 824B
web.xml~2~ 310B
web.xml~5~ 824B
web.xml~9~ 824B
web.xml~6~ 310B
web.xml~10~ 310B
sell.jsp~49~ 933B
sell.jsp~56~ 967B
sell.jsp~50~ 933B
sell.jsp~57~ 1KB
sell.jsp~52~ 942B
sell.jsp~51~ 933B
manage.jsp~5~ 613B
sell.jsp~53~ 944B
sell.jsp~55~ 953B
sell.jsp~54~ 946B
manage.jsp~2~ 570B
src
sale_ticket
Ticket.java 375B
BaseDao.java 3KB
sale_ticket.jpx 7KB
sale_ticket.jpx.local~ 3KB
Web
manage.jsp 539B
WEB-INF
web.xml 310B
lib
jstl.jar 20KB
jaxen-full.jar 187KB
saxpath.jar 23KB
standard.jar 497KB
classes
sale_ticket
Ticket.class 720B
BaseDao.class 3KB
sell.jsp 1KB
classes
Generated Source
.jsp
Web
org
apache
jsp
sell_jsp.java 7KB
manage_jsp.java 3KB
jsp cache
Web
org
apache
jsp
sell_jsp.class 7KB
manage_jsp.class 4KB
package cache
org.apache.jsp.dep2 7KB
sale_ticket
Ticket.class 720B
BaseDao.class 3KB
package cache
sale_ticket.dep2 2KB
共 66 条
- 1
资源评论
- qxd922013-03-27很好哦,代码比较齐全,一些技术用得很好
- love_java_web2015-06-01还可以,可惜不是我想要的。
- 一风清影2014-05-13很好哦,代码比较齐全,一些技术用得很好
- duixing2012-06-07很好哦,代码比较齐全,一些技术用得很好
hzywwj
- 粉丝: 0
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功