freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于jsp技術的企業(yè)網(wǎng)站-資料下載頁

2025-06-27 22:52本頁面
  

【正文】 絲的曙光,老師們的鼓勵和教導指引著我走過了四年的時間,感謝指導老師對我論文的指導,僅以致謝的方式遠不能表達的我的感激之情。敬祝恩師們身體安康,合家幸福! 衷心感謝我的同學們的幫助,你們在生活和學習上對我的幫助是這篇論文得以順利完成的保障。感謝我的父母在萬里之外對我的關懷,你們的鼓勵也是我完成論文的最大動力。祝二老身體健康,萬事如意! 四年時間轉瞬即過,回首往事感慨萬千。本科階段只是我追求的開始,在以后的日子里我會更加勤奮的工作,努力去征服一個個的困難,實現(xiàn)我人生的夢想。 最后,再次謝謝所有幫助過我的人們和我偉大的母校,謝謝!參考文獻[1] MX 2022 中文版完全自學手冊[M]. 北京:人民郵電出版社,2022.[2]周松建, Script 經(jīng)典范例 50 講[M].北京:科學出版社,2022:63-84,108.[3]梁美春,付文學 .軟件工程導論[M].陜西:聊安大學出版社,2022:4566,80. [13] Ivor 2 JDK 5 ,2022[14] 洪維恩, 面向對象程序設計[M].:50200[15]孫衛(wèi)琴、李洪成.Tomcat 與 Java Web 開發(fā)技術詳解[M].北京:電子工業(yè)出版社,2022附錄 1 程序主要代碼Javabean ConnectDBpackage 。import .*。public class ConnectDB {String DBDRIVER = 。// 定義數(shù)據(jù)庫連接地址String DBURL = jdbc:odbc:fengyuan。// 定義數(shù)據(jù)庫連接對象,屬于 包中的接口Connection conn = null 。// 定義 Statement 對象,用于操作數(shù)據(jù)庫Statement stmt = null 。PreparedStatement pstmt=null。// 定義一字符串變量,用于保存 SQL 語句String sql = null 。// 查詢返回的結果集對象ResultSet rs = null 。 //定義打開數(shù)據(jù)庫的連接函數(shù)private String errMes。public ConnectDB(){try{(DBDRIVER) 。}catch(Exception e){// 此處使用 是處于演示目的,在實際開發(fā)中所有的錯誤消息,絕對不能夠通過 打印,否則會存在安全問題(opendb():+()) 。}}public ResultSet executeQuery(String sql)//可以執(zhí)行查詢等操作{try{conn=(DBURL,fengyan,sa)。stmt=()。rs=(sql)。}catch(SQLException e){(:+())。}return rs。}public int executeUpdate(String sql){ //數(shù)據(jù)庫的更新操作有錯誤 int result=0。try{conn=(DBURL)。stmt=()。result=(sql)。}catch(SQLException e){(:+())。}return result。}public void close(){try{if(rs!=null)()。}catch(Exception e){(e)。}try{if(conn!=null)()。}catch(Exception e){(e)。}}Javabean buylist 是一個實體 bean 用于獲取購物車中的商品和用戶信息package 。public class buylist{public String pname。public int pid。public float price。public int number。public String userName。public String getPname() {return pname。}public void setPname(String pname) { = pname。}public int getPid() {return pid。}public void setPid(int pid) { = pid。}用戶登錄后將 ID 和用戶名存入 session 中的頁面 主要代碼如下:%(GB2312)。//獲取登錄信息String userName = (userName)。String userPrd = (userPrd)。String userType = (userType)。//判斷登錄信息是否正確ConnectDB conn = new ConnectDB()。String sql = select userName,userType,userPrd from usr where userName=39。+ userName+ 39。and userPrd=39。+ userPrd+ 39。and userType=39。+ userType + 39。ResultSet rs = (sql)。if (()) {//將用戶名、用戶 ID、用戶角色等信息保存到 session 中(userName, userName)。//(userId,userId)。(userPrd, userPrd)。(userType, userType)。//判斷用戶角色,根據(jù)結果跳轉到相應頁面if ((1))(manager/)。else {Date NowTime = new Date()。String lasttime = ()。String sq = update usr set lasttime=39。 + lasttime+ 39。where userName=39。 + userName + 39。(sq)。()。()。}}else {(p align=centerfont color=red您輸入的用戶名或者密碼有誤br請重新填寫/font/p)。(div align=\center\input type=\button\ name=\btn\ value=\返回\ onClick=\javascript:(1)\/div)。}%添加到購物車的函數(shù) 代碼如下:ConnectDB conn = new ConnectDB()。(GBK)。String pid = (id)。String bookName = 。float price = 0。String sql = select bookName,Price from book where 。sql = sql + bookId= + pid。ResultSet rs = (sql)。try {if (()) {bookName = (bookName)。price = (Price)。}} catch (Exception e) {(())}buylist mylist = new buylist()。 = bookName。 = (pid)。 = price。 = 1。boolean listFlag = true。Vector shop = (Vector) (shop)。if (shop == null) {//如原購物車為空,則新建購物車shop = new Vector()。} else { //購物車不為空時for (int i = 0。 i ()。 i++) {//如該產(chǎn)品以存在購物車內(nèi),只把數(shù)目加 1,不加項目buylist list = (buylist) (i)。if ( == ) {++。(list, i)。listFlag = false。}}}if (listFlag)(mylist)。(shop, shop)。()。%購物車中商品的顯示函數(shù) 主要代碼如下:% Vector shop=(Vector)(shop)。 float num=0。 float price=0。 if(shop==null||()==0){ //購物車為空 % script type=text/javascript alert(您的購物車為空,請先購物!)。 =()。 /script % } else{ for(int i=0。i()。i++) { buylist mylist=(buylist)(i)。 num=num+*。 % tr td /td td%=i+1 %/td td%= %/td td%= %/td td¥%= %/td tdinput name=num%=i % size=7 type=text value=%= %/td td¥%=* %/td /tr script type=text/javascript function check(){ if(isNaN(%=i%.value)) { alert(請不要輸入非法字符)。 return false。 ()。 } if(isNaN(%=i%.value==)) { alert(請輸入修改的數(shù)量)。 return false。 ()。 } } /script % } } % tr td colspan=5hr width=100% size=2/td td colspan=3 align=left總合計金額為¥%=num %/td /tr生成訂單的函數(shù) 的主要代碼如下:%(GBK)。Date date = new Date()。ConnectDB conn = new ConnectDB()。String addTime = ()。//int year=()+1900。int month = () + 1。int dat = ()。int hour = ()。int min = ()。int second = ()。long time = () / 600000000。String mo = (month)。String da = (dat)。String hou = (hour)。String m = (min)。String se = (second)。String t = (time)。String dingdanId = mo + da + hou + m + se + t。String name = (String) (userName)。if ((userName) == null) {(您還沒有登錄,請先登錄)。()。}Vector shop = (Vector) (shop)。float num = 0。float snum = 0。float price = 0。int number = 0。int bookId=0。for (int i = 0。 i ()。 i++) {buylist mylist = (buylist) (i)。num = num + * 。String bookName = 。snum = * 。price = 。number = 。 bookId=。String s = select booksum from book where bookId=39。+ + 39。ResultSet rs = (s)。int booksum = 0。if (()) {booksum = (booksum)。if ( booksum) {out .print(script language=39。javascript39。alert(39。產(chǎn)品庫存剩余+ booksum + ,不足,請重新選擇數(shù)量39。)。=39。39。/script)。}else {String str = insert into dmingxi (dingdanId,userName,bookId,bookName,quantity,price,num,addtime) values(39。+ dingdanId+ 39。,39。+ name+ 39。,39。+ bookId+ 39。,39。+ bookName+ 39。,39。+ number+ 39。,39。+ price+ 39。,39。+ snum+ 39。,39。 + addTime + 39。)。int te = (str)。if (te 0) {out.print(script language=39。javascript39。al
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1