• 大小: 555KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-16
  • 语言: Java
  • 标签: jsp  网上订票  

资源简介

很好的毕业设计!界面很漂亮!

资源截图

代码片段和文件信息

package 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 bean.AdminUser;
import dao.AdminLogDao;

public class AdminLogAction extends Action{
private AdminLogDao adminlog;

public ActionForward execute(ActionMapping map ActionForm form
HttpServletRequest request HttpServletResponse response) throws Exception {
// TODO 自动生成方法存根
response.setContentType(“text/htmlcharset=GB2312“);
String path = servlet.getServletContext().getRealPath(“/WEB-INF/bean.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(“adminlog.fail“));
saveErrors(requesterrors);
return (map.getInputForward());
}

}

public AdminLogDao getAdminlog() {
return adminlog;
}

public void setAdminlog(AdminLogDao adminlog) {
this.adminlog = adminlog;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5034  2007-06-01 15:02  tikects\.classpath

     文件          4  2007-03-20 16:44  tikects\.cvsignore

     文件        437  2007-03-20 16:44  tikects\.project

     文件        352  2007-03-20 16:44  tikects\.tomcatplugin

     文件       3128  2007-05-29 01:03  tikects\admin.jsp

     文件       3123  2007-03-06 23:39  tikects\ddd.jsp

     文件       3123  2007-03-06 23:38  tikects\ff

     文件         44  2007-06-04 13:21  tikects\work\tldCache.ser

     文件       2740  2007-06-10 00:33  tikects\work\loader\ehcache-failsafe.xml

     文件       2741  2007-06-10 00:33  tikects\work\loader\LICENSE.txt

     文件       1119  2007-06-10 00:33  tikects\work\loader\overview.html

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\273.t

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\278.t

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\280.t

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\285.t

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\297.t

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\37.t

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\500.t

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\850.t

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\EBCDIC.t

     文件        768  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\ISO8859-1.t

     文件       2291  2007-06-10 00:33  tikects\work\loader\com\microsoft\util\transliteration.properties

     文件       1972  2007-06-10 00:33  tikects\work\loader\org\hibernate\hibernate-configuration-3.0.dtd

     文件      40815  2007-06-10 00:33  tikects\work\loader\org\hibernate\hibernate-mapping-3.0.dtd

     文件       3722  2007-06-10 00:33  tikects\work\loader\org\springframework\web\util\HtmlCharacterEntityReferences.properties

     文件        874  2007-06-10 00:33  tikects\work\loader\org\springframework\web\servlet\DispatcherServlet.properties

     文件       9963  2007-06-10 00:33  tikects\work\loader\org\springframework\web\servlet\view\velocity\spring.vm

     文件      11192  2007-06-10 00:33  tikects\work\loader\org\springframework\web\servlet\view\freemarker\spring.ftl

     文件        349  2007-06-10 00:33  tikects\work\loader\org\springframework\web\context\ContextLoader.properties

     文件        419  2007-06-10 00:33  tikects\work\loader\org\springframework\remoting\rmi\RmiInvocationWrapperRTD.xml

............此处省略358个文件信息

评论

共有 条评论