91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

運行環境 操作系統:Windows XP。 Java平臺:JDK 1.5。 Web服務器:Tomcat v 5.5.23,下載地址:http://tomcat.apache.org/。 數據庫服務器:MySQL v 5.0.45,下載地址:http://www.mysql.com/。 開發平臺:Eclipse SDK v 3.2.2,下載地址:http://www.eclipse.org/download/index.jsp。 Eclipse插件TomcatPlugins v 3.2.1,下載地址:http://www.eclipse-plugins.info/eclipse/index.jsp。 Eclipse插件ResourceBundleEditor v 0.7.7,下載地址:http://resourcebundleeditor.com/。 Eclipse插件MyEclipse v 5.5.1,下載地址:http://www.myeclipseide.com/ Spring 采用 2.0 版本 Hibernate 采用3.0版本 ====================================================== 請注意:如出現中文亂碼,檢查如下配置是否正確。 (1)MySql 數據庫是否是utf-8 格式(在安裝時選擇支持多語言),數據是否正常。 (2)項目是否為utf-8格式(同時看看的源代碼文件中,中文是否亂碼)。 (3)JSP頁面是否是utf-8 格式。 (4)在web.xml 是否配置了編碼過濾器。 (5)數據源配置的url(?useUnicode=true&characterEncoding=UTF-8),具體請看項目實例。 如果上面5步都沒問題,你就不存在中文亂碼問題。 ====================================================== 數據庫使用的是MySQL,其版本為5.0.45 版本。 數據庫的用戶名及密碼均為root。 使用的時候,請參考附件數據庫導入一節?;驅⑿枰玫降哪痴碌臄祿炷夸洀椭频健癿ysql安裝根目錄\data”文件夾下就可以了。 ★★★★★★★★★★★★★★★★★★★★★★★★★ 該實例來源下面這本書 《精通Java EE項目案例-基于Eclipse Spring Struts Hibernate》 本書下載鏈接,電驢,迅雷皆可 ed2k://|file|%E7%B2%BE%E9%80%9AJava.EE%E9%A1%B9%E7%9B%AE%E6%A1%88%E4%BE%8B-%E5%9F%BA%E4%BA%8EEclipse.Spring.Struts.Hibernate%E5%85%89%E7%9B%98%E6%BA%90%E7%A0%81.rar|70436209|475e7c3548acf955e89e378e760cf894|h=caud4x2auasf3pl2ln27e35fjw2jwxyb|/

資源截圖

代碼片段和文件信息

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;
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????6748??2007-11-19?10:19??OrderTickets\.classpath

?????文件????????457??2007-11-19?10:19??OrderTickets\.myhibernatedata

?????文件????????309??2007-11-19?10:19??OrderTickets\.mymetadata

?????文件????????249??2007-11-19?10:19??OrderTickets\.mystrutsdata

?????文件???????1723??2007-11-19?10:19??OrderTickets\.project

?????文件????????320??2007-11-19?10:19??OrderTickets\.springBeans

?????文件???????2457??2007-11-19?10:19??OrderTickets\WebRoot\admin.jsp

?????文件???????2816??2007-11-19?10:19??OrderTickets\WebRoot\index.jsp

?????文件???????9083??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\.struts-config.mex

?????文件???????8860??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\struts-bean.tld

?????文件???????5534??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\struts-config.xml

?????文件??????73617??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\struts-html.tld

?????文件??????14731??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\struts-logic.tld

?????文件??????71483??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\struts-nested.tld

?????文件???????7842??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\struts-tiles.tld

?????文件??????13781??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\validator-rules.xml

?????文件???????2695??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\web.xml

?????文件?????435415??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\antlr-2.7.6rc1.jar

?????文件?????351953??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\antlr.jar

?????文件???????3934??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\aopalliance.jar

?????文件??????35180??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\asm-2.2.3.jar

?????文件??????16322??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\asm-attrs.jar

?????文件??????15256??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\asm-commons-2.2.3.jar

?????文件??????35300??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\asm-util-2.2.3.jar

?????文件??????25794??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\asm.jar

?????文件?????103236??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\aspectjrt.jar

?????文件????1626856??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\aspectjweaver.jar

?????文件?????430653??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\c3p0-0.9.0.jar

?????文件?????536707??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\c3p0-0.9.1.1.jar

?????文件?????249603??2007-11-19?10:19??OrderTickets\WebRoot\WEB-INF\lib\cglib-2.1.3.jar

............此處省略235個文件信息

評論

共有 條評論