![手動配置ssh框架hsing hsus blog博客頻道csdn_第1頁](http://file4.renrendoc.com/view/ce91b46bf7e3664dc082562e88044d7e/ce91b46bf7e3664dc082562e88044d7e1.gif)
![手動配置ssh框架hsing hsus blog博客頻道csdn_第2頁](http://file4.renrendoc.com/view/ce91b46bf7e3664dc082562e88044d7e/ce91b46bf7e3664dc082562e88044d7e2.gif)
![手動配置ssh框架hsing hsus blog博客頻道csdn_第3頁](http://file4.renrendoc.com/view/ce91b46bf7e3664dc082562e88044d7e/ce91b46bf7e3664dc082562e88044d7e3.gif)
![手動配置ssh框架hsing hsus blog博客頻道csdn_第4頁](http://file4.renrendoc.com/view/ce91b46bf7e3664dc082562e88044d7e/ce91b46bf7e3664dc082562e88044d7e4.gif)
![手動配置ssh框架hsing hsus blog博客頻道csdn_第5頁](http://file4.renrendoc.com/view/ce91b46bf7e3664dc082562e88044d7e/ce91b46bf7e3664dc082562e88044d7e5.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
HsingHsu'sKnowledgehasno 專注挖煤二十年 專注挖煤二十年 第五版精講火星人敏捷開發(fā)1001 2013-02-17 藏一、框架的:第7476::第7476:123篇 :0篇譯文:0篇 評論:17條JavaWebJSP
commons-logging-api-1.1.jarSSHSSIStruts
Spring(1)
相關(guān)資源:
springcontext3.2.1.RELEASE.jarMybatisXMLHTMLCSSFlexASP.NETC#C/C++
Windows應(yīng)用程序
LinuxPythonDjangoSQLServerOracleDB220142014年10月2014年08月2014年05月2013年11月2013年10月
..GA.jar
edition/jdbc-10201-088211.htmlehcache-core- 2.4.3.ja 4.Final.jar.sr.ts.web.3l09.1ts<?xmlversion="1.0"encoding="UTF-<web-appversion="3.0"xmlns=""xmlns:xsi=""
<!--定義Struts2的控制器--<e-file-<e-file>index.html<e-<e-file>index.htm<e-<e-file>index.jsp<e-<e-file>default.html<e-<e-file>default.htm<e-<e-file>default.jsp<e-<e-file-
package publicclass extends*}
packagepublicclassLoginActionextendsBaseAction*publicStringexecute()throws{return}}
<?xmlversion="1.0"encoding="UTF-8"<!DOCTYPEstruts"-//ApacheSoftwareFoundation//DTDStrutsConfiguration2.0//EN""<constantname="struts.objectFactory"value="spring"<constantname="struts.i18n.encoding"value="UTF-8"<constantname="struts.i18n.reload"value="false"<constantname="struts.configuration.xml.reload"value="false" <constantname="struts.action.extension"value="action,," <constantname="struts.convention.result.path"value="/"<constantname="struts.serve.static"value="true"<constantname="struts.serve.static.browserCache"value="false"<packagename="com.hsinghsu.testSSH.action.test"extends="struts-<actionname="login"<resultname="success">新建測試jspe.jsp。
<%@pagelanguage="java"pageEncoding="UTF-<!DOCTYPEhtmlPUBLIC//W3C//DTDHTML4.01Transitional//EN""<title>e打開applicationContext.xml文件,配置spring,添加actionbean。
<?xmlversion="1.0"encoding="UTF-<beansxmlns=""instance"xmlns:p=""xmlns:aop="" xmlns:tx="xmlns:context=""
<?xmlversion="1.0"encoding="UTF-<web-appversion="3.0"xmlns=""xmlns:xsi=""xsi:schemaLocation="<!--ssh中文過濾
<!--定義Struts2的控制器--<!--對Spring容器進(jìn)行實例化<e-file-<e-file>index.html<e-<e-file>index.htm<e-
<e-file>index.jsp<e-<e-file>default.html<e-<e-file>default.htm<e-<e-file>default.jsp<e-<e-file-則頁面會顯示eHsingHsu。ae
publicclassUserprivateLongid;privateStringname;privateStringpwd;
publicLonggetId()return}publicvoidsetId(Longid)this.id=}publicStringgetName()return}publicvoidsetName(Stringname)=}publicStringgetPwd()return}publicvoidsetPwd(Stringpwd)this.pwd=}}
<?xmlversion="1.0"encoding="utf-<!DOCTYPEhibernate-mapPUBLIC"-//Hibernate/HibernateMapDTD3.0//EN""<classname="com.hsinghsu.testSSH.model.User"<idname="id"<columnname="ID"<generatorclass="native"
<propertyname="name"<columnname="NAME"<propertyname="pwd"<columnname="PWD"
<?xmlversion="1.0"encoding="UTF-<beansxmlns=""instance"xmlns:p=""xmlns:aop="" xmlns:tx="xmlns:context=""<bean<property<beanid="dataSource" <propertyname="jdbcUrl"value="${hibernate.connection.url}" <propertyname="user"value="${hibernate.connection.username}" <propertyname="initialPoolSize"value="${c3p0.initialPoolSize}"<propertyname="minPoolSize"value="${c3p0.minPoolSize}"<propertyname="maxPoolSize"value="${c3p0.maxPoolSize}"<propertyname="maxStatements"value="${c3p0.maxStatements}" <propertyname="maxIdleTime"value="${c3p0.maxIdleTime}"<bean<property<reflocal="dataSource"<propertyname="map<property
<prop<prop<propkey=" <prop <bean <tx:methodname="save*"propagation="REQUIRED"<tx:methodname="add*"propagation="REQUIRED"<tx:methodname="create*"propagation="REQUIRED"<tx:methodname="insert*"propagation="REQUIRED"<tx:methodname="update*"propagation="REQUIRED"<tx:methodname="merge*"propagation="REQUIRED"<tx:methodname="del*"propagation="REQUIRED"<tx:methodname="remove*"propagation="REQUIRED"<tx:methodname="put*"propagation="REQUIRED"<tx:methodname="use*"propagation="REQUIRED"<!--hibernate4必須配置為開啟事務(wù)否則getCurrentSession()獲取不到<tx:methodname="get*"propagation="REQUIRED"read-only="true"<tx:methodname="count*"propagation="REQUIRED"read-only="true"<tx:methodname="find*"propagation="REQUIRED"read-only="true"<tx:methodname="list*"propagation="REQUIRED"read-only="true"<tx:methodname="*"read-only="true" (..)))ORexecution(*com.hsinghsu.testSSH.dao.impl.*.*(..))"advice-ref="txAdvice"<ponent-scanbase- <ponent-
hibernate.query.substitutionsyes'Y',no'N'hibernate.show_sqltrue settheumdepthoftheouterjoinfetchtree hibernate.format_sqlfalsementstrue hibernate.testsql=selecthibernate.active=hibernate.minidle=hibernate.maxidle=hibernate.maxwait=-
package importpublicinterface{publicUsergetUserByName(String
packageimportimportimportimportimport import importimport@Repository(value=publicclassUserDaoImplimplements{privateSessionFactorypublicUsergetUserByName(String{
Sessionsession=sessionFactory.getCurrentSession();List<User>list=newArrayList<User>();Criteriacriteria=if(!(null==name&&{ }list=if(list!=null&&list.size()>{return}return}}packagepublicinterfaceUserServicepublicbooleanlogin(Stringname,String
import importimport @Service(value=publicclassUserServiceImplimplementsprivateUserDaopublicbooleanlogin(Stringname,String{Useruser={{return}}return}}
package publicclassLoginActionextendsBaseAction*privateUserServiceprivateStringprivateStringpublicStringexecute()throws{ {return}return}publicStringgetUsername()return}publicvoid{this.username=}publicStringgetPassword()return}publicvoid{this.password=}}
<%@pagelanguage="java"pageEncoding="UTF-<!DOCTYPEhtmlPUBLIC//W3C//DTDHTML4.01Transitional//EN""<title>Inserttitle<formaction="login.action"method="post">Name:<inputtype="text"Password:<inputtype="password"<inputtype="submit"7e.jsp頁面。e.jsp文
<%@pagelanguage="java"pageEncoding="UTF-<%@tagliburi="/struts-tags"prefix="s"<!DOCTYPEhtmlPUBLIC//W3C//DTDHTML4.01Transitional//EN""<title>e<s:property <?xmlversion="1.0"encoding="UTF-8"<!DOCTYPEstruts"-//ApacheSoftwareFoundation//DTDStrutsConfiguration2.0//EN"""><constantname="struts.objectFactory"value="spring"<constantname="struts.i18n.encoding"value="UTF-8"
<constantname="struts.i18n.reload"value="false"<constantname="struts.configuration.xml.reload"value="false" <constantname="struts.action.extension"value="action,," <constantname="struts.convention.result.path"value="/"<constantname="struts.serve.static"value="true"<constantname="struts.serve.static.browserCache"value="false"<packagename="com.hsinghsu.t
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 買賣房屋交接合同協(xié)議書
- 帶擔(dān)保的借款合同
- 水產(chǎn)品購銷合同
- 疾控中心報廢物品回收處置協(xié)議書(2篇)
- 2024-2025學(xué)年四年級語文上冊第七單元25倔強的小紅軍作業(yè)設(shè)計無答案語文S版
- 湘教版數(shù)學(xué)八年級上冊《4.3 一元一次不等式的解法》聽評課記錄2
- 初二班主任學(xué)期總結(jié)
- 項目工程師個人工作總結(jié)
- 委托放貸款協(xié)議
- 駐場獸醫(yī)聘用協(xié)議書范本
- 自愿斷絕父子關(guān)系協(xié)議書電子版
- 2023年4月自考00504藝術(shù)概論試題及答案含解析
- 美麗的大自然(教案)2023-2024學(xué)年美術(shù)一年級下冊
- 2024年低壓電工考試題庫(試題含答案)
- 成都特色民俗課件
- 花城版音樂四下-第四課-認(rèn)知音樂節(jié)奏(教案)
- 寵物醫(yī)院員工手冊
- 2024年高考英語讀后續(xù)寫高分寶典專題08讀后續(xù)寫肢體動作描寫積累1(詞-句-文)講義
- 商業(yè)與公積金貸款政策
- 時政述評培訓(xùn)課件
- 2022屆高三體育特長生家長會
評論
0/150
提交評論