




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
5天課件121select*fromstudentwhereclass_id=?and=?andnamelike? andage>?andage<? phonelike?2POJOpublicclassStudentWherePOpublicclassStudentWherePOprivateString private;privateStringname;privateStringphone;privateIntegerage1;privateInteger3action4Liststuds;ListObc[]deId; //名稱是固定的,數據類型依據主鍵隨意定義,可以是整型/字符String publicclassStudentList3ActionextendspublicclassStudentList3ActionextendsS2SearchAction{privateListstuds;privateStudentWherePO 稱pojoprivate privateString publicStringexecute()throwsExceptionStringhql="fromqh.student.Student";"namelike""phonelike:where.phone", studs=execute(hqlparams);//這一行完成:查詢、翻頁、刪除return"input";}4jspincludejsp查詢<link<linkrel="styleSheet"type="text/css"<s:formaction="StudentList3"<s:include<table<tdalign="rightwidth="100">班級號<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">序號<tdwidth="100">學號<td <tdwidth="150">班級號<td <td <td <tdwidth="200">入學時間<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文件中,沒有時間部分45createtableUSER_IDvarchar(20)primarykey,BIRTHDAYdatetime,ID_CARD )droptableTS_DATEUSER_IDvarchar(20)primarykey,BIRTHDAYdatetime,ID_CARDvarchar(20int,或字符中,則excel)select* fromts_datedeletefromts_date<beanid="impExcelNamedMode"<property 可以省略,默認為第0個頁簽propertyname="excelSheetName"<propertyname="impSQL"<value>insertintoTS_DATE(USER_ID,BIRTHDAY,ID_CARD)<property可以省略,開始導入行,默認為1,propertyname="startRowIndex"value="1"/-->value="-1"/-->publicstaticvoidmain(String[]args)throwsException{ApplicationContextctx=newImpExcelToDBobj=(ImpExcelToDB) ImpExcelToDBobj=(ImpExcelToDB)}6SVN122svn根2javaWeb項目3、自己可以建一個項目,進試SVN服務器的安裝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重新整理集合對象@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多級 的拷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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- T/CARD 033-2022孤獨癥兒童家庭實施早期干預指南
- T/CAR 5-2020制冷展示冰淇淋打球柜和蓋桶式冰淇淋柜分類、要求和試驗條件
- 健康驛站考試題及答案
- 規范知識考試題及答案
- 教師英文面試題及答案
- 單位晉升面試題及答案
- 工作狀態面試題及答案
- T/CAEPI 35-2021餐飲業廢氣排放過程(工況)監控數據采集技術指南
- 市政工程監理總結模版
- 技能人才主題班會實施方案
- 2025年教育行業工會工作計劃
- 小兒靜脈輸液安全管理
- 梗阻性肥厚型心肌病的臨床護理
- 合規管理考試試題及答案
- 施工現場安全作業流程考題
- 焊工初級測試試題及答案
- 福建省福州教育學院附屬中學2025年高三沖刺模擬英語試卷含解析
- 青少年足球訓練營未來三年計劃
- 近五年安徽中考英語真題及答案2024
- 2024年高校輔導員考試題庫試題及答案
- 現澆箱梁施工培訓課件
評論
0/150
提交評論