版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
5天課件121select*fromstudentwhereclass_id=?and=?andnamelike? andage>?andage<? phonelike?2POJOpublicclassStudentWherePOpublicclassStudentWherePOprivateString private;privateStringname;privateStringphone;privateIntegerage1;privateInteger3action4Liststuds;ListObc[]deId; //名稱是固定的,數(shù)據(jù)類型依據(jù)主鍵隨意定義,可以是整型/字符String publicclassStudentList3ActionextendspublicclassStudentList3ActionextendsS2SearchAction{privateListstuds;privateStudentWherePO 稱pojoprivate privateString publicStringexecute()throwsExceptionStringhql="fromqh.student.Student";"namelike""phonelike:where.phone", studs=execute(hqlparams);//這一行完成:查詢、翻頁(yè)、刪除return"input";}4jspincludejsp查詢<link<linkrel="styleSheet"type="text/css"<s:formaction="StudentList3"<s:include<table<tdalign="rightwidth="100">班級(jí)號(hào)<s:select <tdalign="right" <s:select <tdalign="right" <s:textfieldname=""size="10"<tdalign="right" <s:textfieldname="where.age1"size="2"<tdalign="right" <s:textfieldname="where.age2"size="2"<tdalign="right" <s:textfieldname="where.phone"size="10"<div<table<tralign="center"<tdwidth="100">序號(hào)<tdwidth="100">學(xué)號(hào)<td <tdwidth="150">班級(jí)號(hào)<td <td <td <tdwidth="200">入學(xué)時(shí)間<tdwidth="300">住址 torvalue="studs"id="stud"<tr<td<s:checkboxlistname="delIds"<td>${stud.studId<td<td }</td><td <td>${stud.age ;':stud.phone<td>${stud.ruxueTime <buttononclick="delSelectIds();">刪除<button excel2Hibernate3.2+Spring2.5+Struts2.1.xpoijar3yyyy-MM-dd2excel文件中,沒(méi)有時(shí)間部分45createtableUSER_IDvarchar(20)primarykey,BIRTHDAYdatetime,ID_CARD )droptableTS_DATEUSER_IDvarchar(20)primarykey,BIRTHDAYdatetime,ID_CARDvarchar(20int,或字符中,則excel)select* fromts_datedeletefromts_date<beanid="impExcelNamedMode"<property 可以省略,默認(rèn)為第0個(gè)頁(yè)簽propertyname="excelSheetName"<propertyname="impSQL"<value>insertintoTS_DATE(USER_ID,BIRTHDAY,ID_CARD)<property可以省略,開(kāi)始導(dǎo)入行,默認(rèn)為1,propertyname="startRowIndex"value="1"/-->value="-1"/-->publicstaticvoidmain(String[]args)throwsException{ApplicationContextctx=newImpExcelToDBobj=(ImpExcelToDB) ImpExcelToDBobj=(ImpExcelToDB)}6SVN122svn根2javaWeb項(xiàng)目3、自己可以建一個(gè)項(xiàng)目,進(jìn)試SVN服務(wù)器的安裝1 4、工 1Listpublicstaticpublicstaticvoidmain2(String[]args){List<Integer>list=newArrayList();for(inti=0;i<list.size();i++){Integerfor(intj=i+1;j<list.size();j++){Integerb=list.get(j);}}}for(inti=0;i<list.size();i++){Integera=list.get(i);}}publicstaticpublicstaticvoidmain(String[]args){List<Integer>list=newArrayList();SetSetset=newfor(inti=0;i<list.size();){Integera=list.get(i);}}for(inti=0;i<list.size();i++){Integera=list.get(i);}}publicclasspublicclass重新整理集合對(duì)象@paramstaticListstrToIntArray(Stringstr){inti1=Integer.parseInt(strs[0]);inti2=Integer.parseInt(strs[1]);Listlist=newArrayList();for(inti=i1;i<=i2;i++){}return}publicstaticvoidmain(String[]args){Listresult=newfor(intintcheck=strs[i].indexOf("-ListListlist=strToIntArray(strs[i]);}Integera=Integer.parseInt(strs[i]);}}for(inti=0;i<result.size();i++){}for(inti=0;i<nums.length;i++){}}publicstaticvoidmain2(String[]args){Listlist=strToIntArray("10-13");for(inti=0;i<list.size();i++){}}}1多級(jí) 的拷2publicclasspublicclass 拷貝*@param@paramdir2:目 staticvoidcopyDir(Stringdir1,StringFilef2=newFile(dir2); Filef1=newFile(dir1);for(inti=0;i<fileNames.length;i++){StringfileName=fileNames[i];StringsubFilePath=dir1+"\\"+fileName;FilesubFile=newFile(subFilePath);}elsecopyDir(subFilePath,}}}staticvoidcopyOneFile(Stringpath1,StringtryFilef=newFile(path1);StringfileName=f.getName();StringFileInputStreamfin=newFileInputStream(f);FileOutputStreamfout=newFileOutputStream(filePath2);b
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025屆高考英語(yǔ)讀后續(xù)寫說(shuō)課稿 追車人
- 2025SRV汽化煙道熱噴涂合金防護(hù)層施工合同
- 2025民間融資合同范本
- 14《母雞》(說(shuō)課稿)-2023-2024學(xué)年語(yǔ)文四年級(jí)下冊(cè)統(tǒng)編版
- 2025年駕校培訓(xùn)合同范本
- 2025商品購(gòu)銷合同(超市類)
- 2024年五年級(jí)數(shù)學(xué)下冊(cè) 一 圖形的運(yùn)動(dòng)(二)1.2畫(huà)對(duì)稱圖形說(shuō)課稿 冀教版
- 2024-2025學(xué)年高中歷史 第一單元 第一次世界大戰(zhàn) 第2課 慘烈的四年戰(zhàn)事教學(xué)說(shuō)課稿 岳麓版選修3
- 陶土板幕墻施工方案
- 游樂(lè)場(chǎng)植物墻施工方案
- 2024版《安全生產(chǎn)法》考試題庫(kù)附答案(共90題)
- 疥瘡病人的護(hù)理
- 2024年江西省中考英語(yǔ)試題含解析
- 公務(wù)員2012年國(guó)考《申論》真題卷及答案(地市級(jí))
- 新員工三級(jí)安全教育考試試題參考答案
- 35kV輸變電工程(變電站、輸配電線路建設(shè))技術(shù)方案
- 數(shù)學(xué)史簡(jiǎn)介課件可編輯全文
- 化學(xué)廢水水池清理施工方案
- 離婚協(xié)議書(shū)常用范本2024年
- 中學(xué)安全辦2024-2025學(xué)年工作計(jì)劃
- 2024年山東省東營(yíng)市中考數(shù)學(xué)試題 (解析版)
評(píng)論
0/150
提交評(píng)論