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

正文內(nèi)容

基于jsp的網(wǎng)上購物系統(tǒng)設(shè)計本科畢業(yè)論文(已改無錯字)

2022-08-24 05:30:09 本頁面
  

【正文】 ccess path=/Admin/ / /action action attribute=adminForm input=/Admin/ name=adminForm parameter=method19 path=/Admin/admin scope=request type= forward name=browse path=/Admin/ / forward name=modify path=/Admin/ / forward name=delete path=/Admin/?method=browseAdmin / /action action attribute=cateForm input=/Admin/ name=cateForm parameter=method path=/Admin/adminCate scope=request type= forward name=browse path=/Admin/ / forward name=modify path=/Admin/ / forward name=delete path=/Admin/?method=browseCate / /action …………………………. action attribute=memberForm input=/ name=memberForm parameter=method path=/mem scope=request type= forward name=browseWord path=// forward name=loadMember path=// 20 /action action parameter=method path=/cart type= forward name=browseCart path=// forward name=checkOrder path=// forward name=submitOrder path=// /action action parameter=method path=/order type= forward name=browseOrder path=// forward name=viewOrder path=// /action action parameter=method path=/Admin/adminOrder type= forward name=browseOrder path=/Admin// forward name=viewOrder path=/Admin// /action action parameter=method path=/Admin/adminMember type= forward name=browseWord path=/Admin/ / forward name=browseMember path=/Admin/ / forward name=viewWord path=/Admin/ /21 forward name=viewMember path=/Admin/ / /action /actionmappings messageresources parameter= / !配置 strutsmenu 插件 plugin className= setproperty property=menuConfig value=/WEBINF// /plugin !配置 Validator 插件 plugin className= setproperty property=pathnames value=/WEBINF/validator,/WEBINF/ / /plugin/strutsconfig 以上代碼配置了ActionForm和Action的相關(guān)信息,實現(xiàn)了對提交的數(shù)據(jù)進行自動收集,并且根據(jù)ActionMapping 的參數(shù)自動實例化相應(yīng)的Action。然后根據(jù)具體的需要進行轉(zhuǎn)向,或者發(fā)生異常時進行轉(zhuǎn)向。⑶ hibernateconfigurationsessionfactory!配置 JDBC 連接屬性property name=MySQL_JDBC/propertyproperty name=jdbc:=gb2312/property22property name=root/propertyproperty name=root/propertyproperty name=/propertyproperty name=dialect/property! 解決 HQL 查詢中直接使用中文的問題 property name=/property! 配置 C3P0 連接池屬性 property name=/propertyproperty name=20/propertyproperty name=5/propertyproperty name=50000/propertyproperty name=100/propertyproperty name=3000/property! 在控制臺顯示 SQL 語句 property name=show_sqltrue/property! 注冊 ORM 映射文件 mapping resource=/ORM/ /mapping resource=/ORM/ /mapping resource=/ORM/ /mapping resource=/ORM/ /mapping resource=/ORM/ /mapping resource=/ORM/ /23mapping resource=/ORM/ /mapping resource=/ORM/ /mapping resource=/ORM/ //sessionfactory/hibernateconfiguration以上代碼首先配置了數(shù)據(jù)源和sessionFactory 對象,建立了與數(shù)據(jù)庫的連接,可以通過映射文件關(guān)聯(lián)數(shù)據(jù)庫中對應(yīng)的表。在Dao的實現(xiàn)當(dāng)中可以通過操作對象來實現(xiàn)對表的操作。其次,實現(xiàn)了對接口和類的自動實例化,并且配置了它們之間的依賴關(guān)系,對于某些對象需要用到的屬性或?qū)ο蟮囊?,可以通過setter方法注入過來。實現(xiàn)數(shù)據(jù)的持久化。 主要業(yè)務(wù)邏輯的代碼⑴用戶注冊模塊關(guān)鍵代碼public class MemServiceImpl extends BaseLog implements MemService {/** 新增注冊會員 */public boolean addMember(Member member) throws Exception {Session session = ()。Transaction tx = null。boolean result = false。try{tx = ()。(member)。()。result=true。}catch(Exception ex){if(tx!=null)()。(在執(zhí)行 MemServiceImpl 類中的 addMember 方法時出錯:\n)。()。}finally{24()。}return result。}/** 瀏覽會員級別 */public List browseMemberLevel() throws Exception {Session session = ()。Transaction tx = null。List list = null。try{Query query = (from Memberlevel as a order by )。tx = ()。list = ()。()。if (!(list))(list)。}catch(Exception ex){if(tx!=null)()。(在執(zhí)行 MemServiceImpl 類中的 browseMemberLevel 方法時出錯:\n)。()。}finally{()。}return list。}/** 檢測登錄帳號是否有效 */public boolean chkLoginName(String loginName) throws Exception {Session session = ()。Transaction tx = null。boolean result = true。try{25String hql = select count(*) from Member as a where =:loginName。Query query = (hql)。(loginName, loginName)。(1)。tx = ()。if (((Integer)()).intValue()0)result=false。()。}catch(Exception ex){if(tx!=null)()。(在執(zhí)行 MemServiceImpl 類中的 chkLoginName 方法時出錯:\n)。()。}finally{()。} return result。}用戶注冊模塊運行圖如下圖 8 所示:26圖 8 用戶注冊模塊運行圖⑵購物車模塊關(guān)鍵代碼public class CartServiceImpl extends BaseLog implements CartService {/** 選購商品 */public boolean addCart(Member member, Merchandise mer, int number)throws Exception {Session session = ()。Transaction tx = null。boolean status = false。try{Cartselectedmer sel = null。int favourable = ().getFavourable().intValue()。//判斷該會員是否已經(jīng)有使用中的購物車String hql =from Cart as a where =:member and =0。Query query = (hql)。(member, member)。(1)。tx = ()。Cart cart = (Cart)()。if (cart==null){cart = new Cart()。(new Integer(0))。(member)。((number*().doubleValue()))。().add(mer)。(cart)。27}else{//
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1