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

正文內(nèi)容

計算機科學(xué)與技術(shù)專業(yè)畢業(yè)論文--網(wǎng)上拍賣系統(tǒng)畢業(yè)設(shè)計(參考版)

2024-12-07 17:09本頁面
  

【正文】 在 文件中的設(shè)置如下: ! 全局 ActionForm 邏輯名稱及路徑配置 formbeans formbean name bidFormtype ValidatorForm formproperty name itemId type ng/ formproperty name bidPrice type ng/ formproperty name Price type ng/ formproperty name vercode type ng/ /formbean /formbeans ! Action 類及其訪問路徑的映射配置 actionmappings action path /viewBid type scope request validate false parameter method forward name success path /WEBINF/jsp// forward name login path /WEBINF/jsp// action path /viewDetail type scope request validate false parameter method forward name error path /WEBINF/jsp// forward name success path /WEBINF/jsp// action path /bid type name bidForm scope request validate true input input forward name input path // forward name success path // forward name。處理此表單的動作為 。 bean:write name item property Price/ 39。 bean:write name item property id/ 39。如圖 53 所示圖 5 界面 html:form action / onsubmit return validateBidForm this 。 實現(xiàn)查看物品詳細信息及出價界面 在顯示同一種類所有物品的界面( ),通過點擊商品名稱進入顯示商品詳細信息界面( )。 public List findItemByKind Integer kindId return getHibernateTemplate .find from Item as i where ? and 1 , kindId 。 catch Exception e 。 ib 。 ItemBean ib new ItemBean 。 。 List items new Integer kindId 。 return success 。 kind , kind 。 else String kind id 。 if id null || .equals errMsg , 您必須選擇有效的種類 。 import l.*。 import 。其中涉及商品類別的分類顯示代碼如下: import 。在遍歷中用 bean:write 元素輸出。?itemId bean:write name item property id/ 39。如圖 52所示。最后轉(zhuǎn)向?qū)嶋H的主頁面(頁面名稱為“ ”)即可。 其中使用的 HQL 語句為“ from Kind”,即從 kind 數(shù)據(jù)表中取出所有記錄。 throw new AuctionException 底層業(yè)務(wù)異常 ,請重新試 。//增加新的用戶 涉及到顯示商品種類的數(shù)據(jù)訪問層方法 AuctionManager的 getAllKind 方法,并在該方法中調(diào)用為 KindDao 的 findAll 方法,實現(xiàn)代碼如下: public List getAllKind throws AuctionException try return 。//增加新的競價 void updateWiner throws AuctionException。//根據(jù)分類 id,獲取種類名 ItemBean getItem int itemId throws AuctionException。//添加種類 List getItemsByKind int kindId throws AuctionException。//查詢?nèi)糠N類 void addItem String name , String desc , String remark , double initPrice , int avail , int kind , int userId throws AuctionException。//查詢用戶的全部出價 List getItemsByOwner int userId throws AuctionException。//查詢?nèi)苛髋牡奈锲? Integer validLogin String username , String pass throws AuctionException。 主要包含的方法如下: List getItemByWiner int winerId throws AuctionException。 return success 。 kinds , kinds 。 import Action。 import 。其中涉及商品類 別的分類顯示代碼如下: import 。在遍歷中用 bean:write 元素輸出。 kindId bean:write name kind property id/ 39。如圖 51所示。它由 Struts 的 Action 類的子類實現(xiàn),在其中加入業(yè)務(wù)邏輯并將主頁實際所需要的數(shù)據(jù)從數(shù)據(jù)庫中提取出來保存到 request 對象或其他對象中,最后轉(zhuǎn)向?qū)嶋H的主頁面(頁面名稱為“ ”)即可。 logic:redirect action // 這樣,當(dāng)在瀏覽器中輸入 action path /index forward /WEBINF/jsp// 由于主頁面不 涉及復(fù)雜的業(yè)務(wù)邏輯和數(shù)據(jù)訪問,這里就不作詳細介紹了。 界面實現(xiàn) 界面的設(shè)計使用 Dreamweaver 開發(fā),它的可視化編輯功能,可以快速的創(chuàng)建頁面而無需編寫任何代碼,設(shè)計環(huán)境也使用了 CSS 樣式表來進行網(wǎng)頁樣式的統(tǒng)一管理,可以迅速高效的開發(fā)出代碼簡潔、專業(yè)規(guī)范的站點。 其他數(shù)據(jù)訪問層的 xml 文件和 Dao 類如下表: 表 52 對象模型與 xml 文件對應(yīng)表 對象模型 數(shù)據(jù)庫訪問接口 接口實現(xiàn)類 配置文件 Bid BidDao BidDaoHirbernate Item ItemDao ItemDaoHirbernate Kind KindDao KindDaoHirbernat State StateDao StateDaoHirbernate S 數(shù)據(jù)庫連在 文件中配置 bean id dataSource class property name driverClassName .Driver property name url jdbc: property name username root property name password 1234 !定義了 Hibernate 的 SessionFactory bean id sessionFactory class property name dataSource ref local dataSource/ property name mappingResources Auction S property name hibernateProperties prop key prop key show_sql true prop key hiber update prop key hiberh_size 20 bean id transactionManager class property name sessionFactory ref sessionFactory/ ice 包中包含兩個類,分別是接口 AuctionManager 及其實現(xiàn)類AuctionManagerImpl。 動作類將會根據(jù)此類中的方法進行數(shù)據(jù)的增、刪、改及查等操作。 return Integer 。 List ul getHibernateTemplate .find from AuctionUser au where ? and ? , args 。 /** * 查詢?nèi)坑脩? * return 獲得全部用戶 */ public List findAll return getHibernateTemplate .find from AuctionUser 。 /** * 刪除用戶 * param id 需要刪除的用戶 id */ public void delete Integer id getHibernateTemplate .delete getHibernateTemplate .get , id 。 /** * 增加用戶 * param user 需要增加的用戶 */ public void save AuctionUser user getHibernateTemplate .save user 。 import ness.*。 import 。 import yList。 package 。通過MyEclipse,可以自動生成這些對象模型,以及數(shù)據(jù)訪問層的相關(guān)類。 2 在 MyActionServlet作為前端控制器,部分代碼如下: ? servletname action /servletname servletclass /servletclass initparam paramname config /paramname paramvalue /WEBINF/ /paramvalue /initparam loadonstartup 2 /loadonstartup ? 應(yīng)用此設(shè)置后,程序?qū)⑹?先通過 MyActionServlet 預(yù)處理所有發(fā)送至此控制器設(shè)置中文編碼,然后使用 方法將控制權(quán)交給 ActionSerlet處理完成其功能。 GB2312 。 import 。 import onServlet。 為了使各個表單中的數(shù)據(jù)能正確顯示,本系統(tǒng)重載了 ActionServlet 類,使其正確處理中文參數(shù)并顯示。 設(shè)計視圖層 系統(tǒng)的視圖層是一組 JSP 頁面,他們通過 Struts 結(jié)合 JSTL EL 表達式語言將數(shù)據(jù)暴露給用戶,供用戶操作。 表中 state_id 為主鍵設(shè)為自動增長。howmuch 代表用戶對此商品出了多少錢。 item_id 為商品表
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1