资源简介
基于struts spring hibernate的航空票务系统包含sql
代码片段和文件信息
package bit.jeffy.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
import bit.jeffy.bean.AdminUser;
import bit.jeffy.dao.AdminLogDao;
public class AdminLogAction extends Action{
private AdminLogDao adminlog;
public ActionForward execute(ActionMapping map ActionForm form
HttpServletRequest request HttpServletResponse response) throws Exception {
// TODO 自动生成方法存根
String path = servlet.getServletContext().getRealPath(“/WEB-INF/beans.xml“);
String rp = (String)request.getSession().getAttribute(“path“);
if(rp != null){
request.getSession().removeAttribute(“path“);
}
request.getSession().setAttribute(“path“path);
String username = (String)((AdminUser)form).getUserid();
String password = (String)((AdminUser)form).getPassword();
username = new String(username.getBytes(“ISO-8859-1“)“GB2312“);
password = new String(password.getBytes(“ISO-8859-1“)“GB2312“);
ActionMessages errors = new ActionMessages();
if( adminlog.IsUserValid(usernamepassword)){
String tmp = (String)request.getSession().getAttribute(“curr_admin“);
if(tmp == null){
request.getSession().setAttribute(“curr_admin“username);
}else{
request.getSession().removeAttribute(“cur_admin“);
request.getSession().setAttribute(“curr_admin“username);
}
return (map.findForward(“login“));
}else{
errors.add(“fail_1“new ActionMessage(“AdminLogAction.a“));
saveErrors(requesterrors);
return (map.getInputForward());
}
}
public AdminLogDao getAdminlog() {
return adminlog;
}
public void setAdminlog(AdminLogDao adminlog) {
this.adminlog = adminlog;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7080 2006-07-07 09:12 OrderTickets无包版\.classpath
文件 4 2006-07-07 09:12 OrderTickets无包版\.cvsignore
文件 447 2006-07-07 09:12 OrderTickets无包版\.project
文件 362 2006-07-07 09:12 OrderTickets无包版\.tomcatplugin
文件 2434 2006-07-07 09:12 OrderTickets无包版\admin.jsp
文件 316 2006-07-07 09:12 OrderTickets无包版\CVS\Entries
文件 14 2006-07-07 09:12 OrderTickets无包版\CVS\Repository
文件 33 2006-07-07 09:12 OrderTickets无包版\CVS\Root
目录 0 2008-04-01 19:54 OrderTickets无包版\CVS
文件 2777 2006-07-07 09:12 OrderTickets无包版\index.jsp
文件 2663 2006-07-07 09:12 OrderTickets无包版\pic\ftp.gif
文件 2982 2006-07-07 09:12 OrderTickets无包版\pic\info.gif
文件 2729 2006-07-07 09:12 OrderTickets无包版\pic\water.gif
目录 0 2008-04-01 19:54 OrderTickets无包版\pic
文件 13 2006-07-07 09:12 OrderTickets无包版\src\bit\CVS\Entries
文件 22 2006-07-07 09:12 OrderTickets无包版\src\bit\CVS\Repository
文件 33 2006-07-07 09:12 OrderTickets无包版\src\bit\CVS\Root
目录 0 2008-04-01 19:54 OrderTickets无包版\src\bit\CVS
文件 2010 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\AdminLogAction.java
文件 2047 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\CreateFlightAction.java
文件 2322 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\CreateOrderItemAction.java
文件 432 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\CVS\Entries
文件 35 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\CVS\Repository
文件 33 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\CVS\Root
目录 0 2008-04-01 19:54 OrderTickets无包版\src\bit\jeffy\action\CVS
文件 584 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\IndexReturnAction.java
文件 2460 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\LogAction.java
文件 2715 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\ManageUserAction.java
文件 1495 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\PurchaseAction.java
文件 588 2006-07-07 09:12 OrderTickets无包版\src\bit\jeffy\action\PurchaseReturnAction.java
............此处省略317个文件信息
- 上一篇:pdksh-5.2.14的rpm包
- 下一篇:图书管理系统源代码
评论
共有 条评论