JSP+SQL火车订票系统-毕业设计
可以满足火车站网上订票的基本要求,包括查询、订票、退票等三个方面的功能。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2097152 2013-02-03 12:20 091JSP火车订票系统cpyd.mdf
文件 2097152 2013-02-03 12:20 091JSP火车订票系统cpyd_log.ldf
文件 709 2012-12-30 11:58 091JSP火车订票系统源文件Cpyd.classpath
文件 285 2012-12-30 08:13 091JSP火车订票系统源文件Cpyd.mymetadata
文件 1222 2012-12-30 16:26 091JSP火车订票系统源文件Cpyd.project
文件 6522 2012-12-31 01:33 091JSP火车订票系统源文件CpydsrccomactionMemberManageServlet.java
文件 13552 2012-12-30 20:58 091JSP火车订票系统源文件CpydsrccomactionMemberServlet.java
文件 7604 2012-12-31 01:00 091JSP火车订票系统源文件CpydsrccomeanSystemBean.java
文件 8676 2012-12-30 08:14 091JSP火车订票系统源文件CpydsrccomeanTrainBean.java
文件 2503 2012-12-31 02:17 091JSP火车订票系统源文件CpydsrccomutilDBO.java
文件 650 2012-12-30 21:38 091JSP火车订票系统源文件CpydsrccomutilFilter.java
文件 836 2012-12-31 01:24 091JSP火车订票系统源文件CpydsrccomutilLog.java
文件 792 2012-12-31 05:54 091JSP火车订票系统源文件CpydsrccomutilMD5.java
文件 1051 2013-02-03 12:19 091JSP火车订票系统源文件CpydWebRootadmindefault.jsp
文件 838 2012-12-31 01:12 091JSP火车订票系统源文件CpydWebRootadminiframeindex.jsp
文件 6312 2012-12-30 19:23 091JSP火车订票系统源文件CpydWebRootadminiframeleft.jsp
文件 3104 2012-12-30 10:59 091JSP火车订票系统源文件CpydWebRootadminiframemain.jsp
文件 5711 2012-12-31 03:23 091JSP火车订票系统源文件CpydWebRootadminiframe op.jsp
文件 10889 2012-12-31 00:41 091JSP火车订票系统源文件CpydWebRootadminimagesadmin_m.swf
文件 6221 2012-12-31 04:44 091JSP火车订票系统源文件CpydWebRootadminimagesAdmin_style.css
文件 825 2012-12-30 18:39 091JSP火车订票系统源文件CpydWebRootadminimagesg.jpg
文件 315 2012-12-31 00:01 091JSP火车订票系统源文件CpydWebRootadminimagest_login.gif
文件 179 2012-12-31 05:48 091JSP火车订票系统源文件CpydWebRootadminimagesullet.gif
文件 20734 2012-12-31 03:57 091JSP火车订票系统源文件CpydWebRootadminimagescalendar.js
文件 26508 2012-12-30 16:03 091JSP火车订票系统源文件CpydWebRootadminimagesCommon.js
文件 3143 2012-12-30 09:17 091JSP火车订票系统源文件CpydWebRootadminimagesdate.js
文件 835 2012-12-30 20:38 091JSP火车订票系统源文件CpydWebRootadminimagesdefault.jsp
文件 168 2012-12-31 01:23 091JSP火车订票系统源文件CpydWebRootadminimagesHardWare.gif
文件 85 2012-12-30 14:48 091JSP火车订票系统源文件CpydWebRootadminimagesimg_u.gif
文件 835 2012-12-30 16:47 091JSP火车订票系统源文件CpydWebRootadminimagesindex.jsp
............此处省略177个文件信息
package com.action;
/**
*
* 网站后台管理注册会员 查询 冻结 删除会员
*/
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.bean.MemberManageBean;
import com.bean.SystemBean;
import com.util.Constant;
import com.util.Filter;
public class MemberManageServlet extends HttpServlet {
/**
* Constructor of the object.
*/
public MemberManageServlet() {
super();
}
/**
* Destruction of the servlet.
*/
public void destroy() {
super.destroy(); // Just puts “destroy“ string in log
// Put your code here
}
/**
* The doGet method of the servlet.
*
* This method is called when a form has its tag value method equals to get.
*
* @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 doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
doPost(requestresponse);
}
/**
* 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(Constant.CONTENTTYPE);
request.setCharacterEncoding(Constant.CHARACTERENCODING);
String sysdir = new SystemBean().getDir();
HttpSession session = request.getSession();
try{
String username2 = (String)session.getAttribute(“user“);
if(username2 == null){
request.getRequestDispatcher(“error.jsp“).forward(request response);
}
else{
String method = Filter.escapeHTMLTags(request.getParameter(“method“).trim());
MemberManageBean mmBean = new MemberManageBean();
if(method.equals(“DELMEMBER“)||method.equals(“DELCO“)||method.equals(“DELTODAY“)
||method.equals(“DELALLCLOSE“)||method.equals(“DELALLUSE“)){//删除来自后台各个页面的会员
String check[] = request.getParameterValues(“checkit“);
if(check == null){
if(method.equals(“DELMEMBER“)){//来自所有个人会员页面
request.setAttribute(“message“ “请选择要删除的记录!“);
request.getRequestDispatcher(sysdir+“/member/person.jsp“).forward(request response);
}
else if(method.equals(“DELCO“)){//来自所有企业会员页面
request.setAttribute(“message“ “请选择要删除的记录!“);
request.getRequestDispatcher(sysdir+“/member/co.jsp“).forward(request response);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2097152 2013-02-03 12:20 091JSP火车订票系统cpyd.mdf
文件 2097152 2013-02-03 12:20 091JSP火车订票系统cpyd_log.ldf
文件 709 2012-12-30 11:58 091JSP火车订票系统源文件Cpyd.classpath
文件 285 2012-12-30 08:13 091JSP火车订票系统源文件Cpyd.myme
文件 1222 2012-12-30 16:26 091JSP火车订票系统源文件Cpyd.project
文件 6522 2012-12-31 01:33 091JSP火车订票系统源文件CpydsrccomactionMemberManageServlet.java
文件 13552 2012-12-30 20:58 091JSP火车订票系统源文件CpydsrccomactionMemberServlet.java
文件 7604 2012-12-31 01:00 091JSP火车订票系统源文件CpydsrccomeanSystemBean.java
文件 8676 2012-12-30 08:14 091JSP火车订票系统源文件CpydsrccomeanTrainBean.java
文件 2503 2012-12-31 02:17 091JSP火车订票系统源文件CpydsrccomutilDBO.java
文件 650 2012-12-30 21:38 091JSP火车订票系统源文件CpydsrccomutilFilter.java
文件 836 2012-12-31 01:24 091JSP火车订票系统源文件CpydsrccomutilLog.java
文件 792 2012-12-31 05:54 091JSP火车订票系统源文件CpydsrccomutilMD5.java
文件 1051 2013-02-03 12:19 091JSP火车订票系统源文件CpydWebRootadmindefault.jsp
文件 838 2012-12-31 01:12 091JSP火车订票系统源文件CpydWebRootadminif
文件 6312 2012-12-30 19:23 091JSP火车订票系统源文件CpydWebRootadminif
文件 3104 2012-12-30 10:59 091JSP火车订票系统源文件CpydWebRootadminif
文件 5711 2012-12-31 03:23 091JSP火车订票系统源文件CpydWebRootadminif
文件 10889 2012-12-31 00:41 091JSP火车订票系统源文件CpydWebRootadminimagesadmin_m.swf
文件 6221 2012-12-31 04:44 091JSP火车订票系统源文件CpydWebRootadminimagesAdmin_st
文件 825 2012-12-30 18:39 091JSP火车订票系统源文件CpydWebRootadminimagesg.jpg
文件 315 2012-12-31 00:01 091JSP火车订票系统源文件CpydWebRootadminimagest_login.gif
文件 179 2012-12-31 05:48 091JSP火车订票系统源文件CpydWebRootadminimagesullet.gif
文件 20734 2012-12-31 03:57 091JSP火车订票系统源文件CpydWebRootadminimagescalendar.js
文件 26508 2012-12-30 16:03 091JSP火车订票系统源文件CpydWebRootadminimagesCommon.js
文件 3143 2012-12-30 09:17 091JSP火车订票系统源文件CpydWebRootadminimagesdate.js
文件 835 2012-12-30 20:38 091JSP火车订票系统源文件CpydWebRootadminimagesdefault.jsp
文件 168 2012-12-31 01:23 091JSP火车订票系统源文件CpydWebRootadminimagesHardWare.gif
文件 85 2012-12-30 14:48 091JSP火车订票系统源文件CpydWebRootadminimagesimg_u.gif
文件 835 2012-12-30 16:47 091JSP火车订票系统源文件CpydWebRootadminimagesindex.jsp
............此处省略177个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)