91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 28.67MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-06-27
  • 語言: Java
  • 標(biāo)簽: java??mysql??html5??css3??jquery??

資源簡(jiǎn)介

采用ssh+mysql實(shí)現(xiàn)服裝商城。代碼注釋多,通俗易懂。適合做商城模板,只要修改圖片,菜單和數(shù)據(jù)即可。

資源截圖

代碼片段和文件信息

package?com.restrant.action;

import?java.io.File;
import?java.util.List;
import?java.util.Map;

import?org.apache.commons.io.FileUtils;
import?org.apache.struts2.ServletActionContext;
import?org.apache.struts2.interceptor.RequestAware;
import?com.opensymphony.xwork2.ActionSupport;
import?com.restrant.biz.CaiLiaoBiz;
import?com.restrant.entity.CaiLiao;
import?com.restrant.entity.Pager;

public?class?CaiLiaoAction?extends?ActionSupport?implements?RequestAware?{

//定義CaiLiao類型屬性,用于封裝表單參數(shù)
private?CaiLiao?caiLiao;
public?CaiLiao?getCaiLiao()?{
return?caiLiao;
}
public?void?setCaiLiao(CaiLiao?caiLiao)?{
this.caiLiao?=?caiLiao;
}
CaiLiaoBiz?caiLiaoBiz;
public?void?setCaiLiaoBiz(CaiLiaoBiz?caiLiaoBiz)?{
this.caiLiaoBiz?=?caiLiaoBiz;
}
//分頁(yè)實(shí)體類
private?Pager?pager;
public?Pager?getPager()?{
return?pager;
}
public?void?setPager(Pager?pager)?{
this.pager?=?pager;
}

private?File?doc;????????????????//封裝上傳文件的屬性
private?String?docFileName;??????//封裝上傳文件的名稱屬性
private?String?docContentType;???//封裝上傳文件的類型屬性

Mapject>?request;
@Override
public?void?setRequest(Mapject>?request)?{
this.request=request;
}

//獲取指定頁(yè)碼、符合查詢條件的商品列表,再轉(zhuǎn)到商品顯示頁(yè)show.jsp
public?String?toShowCaiLiao()?throws?Exception?{
int?curPage=1;
if(pager!=null)
curPage=pager.getCurPage();
List?CaiLiaoList=null;
if(caiLiao!=null){??
//CaiLiao不為空,表示表單中輸入了查詢條件,此時(shí)將獲取指定頁(yè)碼、符合查詢條件的商品列表
CaiLiaoList=caiLiaoBiz.getCaiLiaoByCondition(caiLiaocurPage);
//統(tǒng)計(jì)符合查詢條件的商品數(shù)量初始化分頁(yè)類Pager對(duì)象,設(shè)置perPageRows和rowCount屬性
pager=caiLiaoBiz.getPagerOfCaiLiao(caiLiao);
//將查詢條件存入request范圍,將作為分頁(yè)超鏈接中的參數(shù)值
if((caiLiao.getFlag()==null))
request.put(“Flag“?new?String(caiLiao.getFlag())?);
}else{????
//CaiLiao為空,表示沒有指定查詢條件,此時(shí)將獲取指定頁(yè)碼的商品列表
CaiLiaoList=caiLiaoBiz.getAllCaiLiao(curPage);
//獲取所有菜品數(shù)量用來初始化分頁(yè)類Pager對(duì)象,并設(shè)置其perPageRows和rowCount屬性
pager=caiLiaoBiz.getPagerOfCaiLiao();
}

//設(shè)置Pager對(duì)象中的待顯示頁(yè)頁(yè)碼
pager.setCurPage(curPage);
//將查詢獲得的列表存入request范圍
request.put(“caiLiaoList“?CaiLiaoList);
return?“toShowCaiLiao“;
}
public?String?toShowDetails()?throws?Exception?{
CaiLiao?aCaiLiao=caiLiaoBiz.getCaiLiaoByCaiLiaoId(caiLiao.getCaiLiaoId());
request.put(“aCaiLiao“?aCaiLiao);
return?“toShowDetails“;
}
????
????//獲取指定頁(yè)碼、符合查詢條件的商品列表,再轉(zhuǎn)到菜品管理頁(yè)manageCaiLiao.jsp
????public?String?toManageCaiLiao()?throws?Exception?{
int?curPage=1;
if(pager!=null)
curPage=pager.getCurPage();
List?CaiLiaoList=null;
if(caiLiao!=null){
CaiLiaoList=caiLiaoBiz.getCaiLiaoByCondition(caiLiao?curPage);
pager=caiLiaoBiz.getPagerOfCaiLiao(caiLiao);
????if((caiLiao.getCaiLiaoName()!=null)?&&?!caiLiao.getFlag().equals(““))
request.put(“Flag“?caiLiao.getFlag());
}else{
CaiLiaoList=caiLiaoBiz.getAllCaiLiao(curPage);
//獲取所有菜品數(shù)量用來初始化分頁(yè)類Pager對(duì)象,并設(shè)置其perPageRows和rowCount屬性
pager=caiLiaoBiz.getPagerOfCaiLiao();
}
/

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件????????356??2017-03-24?23:47??服裝\注意.txt

?????文件???41850958??2017-03-24?23:47??服裝\服裝.wmv

?????文件???????1541??2014-05-01?21:05??服裝\Restrant\.project

?????文件???????2009??2014-05-01?21:09??服裝\Restrant\.classpath

?????文件????????464??2014-05-03?08:16??服裝\Restrant\.myhibernatedata

?????文件????????425??2014-05-01?21:08??服裝\Restrant\.springBeans

?????文件???????1334??2017-02-12?21:01??服裝\Restrant\hibernate.reveng.xml

?????文件????????522??2014-05-01?17:02??服裝\Restrant\.settings\.jsdtscope

?????文件????????179??2014-05-01?21:09??服裝\Restrant\.settings\com.genuitec.runtime.libraries.xml

?????文件????????364??2014-05-01?17:01??服裝\Restrant\.settings\org.eclipse.jdt.core.prefs

?????文件????????485??2014-05-01?17:01??服裝\Restrant\.settings\org.eclipse.wst.common.component

?????文件????????481??2014-05-01?21:05??服裝\Restrant\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml

?????文件????????547??2014-05-01?21:09??服裝\Restrant\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2014-05-01?17:02??服裝\Restrant\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2014-05-01?17:02??服裝\Restrant\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件????????101??2017-02-12?22:39??服裝\Restrant\.settings\org.eclipse.core.resources.prefs

?????文件???????6035??2017-03-21?18:29??服裝\Restrant\src\applicationContext.xml

?????文件???????7636??2017-03-27?18:20??服裝\Restrant\src\struts.xml

?????文件???????2665??2017-03-24?22:56??服裝\Restrant\src\com\restrant\action\CartAction.java

?????文件???????7419??2017-03-24?22:56??服裝\Restrant\src\com\restrant\action\MealAction.java

?????文件???????4626??2017-03-23?12:24??服裝\Restrant\src\com\restrant\action\OrdersAction.java

?????文件???????3950??2017-03-27?18:23??服裝\Restrant\src\com\restrant\action\UserAction.java

?????文件???????4639??2017-03-24?22:55??服裝\Restrant\src\com\restrant\action\CaiLiaoAction.java

?????文件???????1052??2017-03-24?22:57??服裝\Restrant\src\com\restrant\biz\MealBiz.java

?????文件????????140??2017-03-24?22:57??服裝\Restrant\src\com\restrant\biz\MealSeriesBiz.java

?????文件????????298??2014-05-10?09:35??服裝\Restrant\src\com\restrant\biz\OrderDtsBiz.java

?????文件????????993??2014-05-11?14:15??服裝\Restrant\src\com\restrant\biz\OrdersBiz.java

?????文件????????554??2017-02-12?21:28??服裝\Restrant\src\com\restrant\biz\UserBiz.java

?????文件????????548??2017-02-12?17:30??服裝\Restrant\src\com\restrant\biz\CaiLiaoBiz.java

?????文件???????2365??2017-03-24?22:59??服裝\Restrant\src\com\restrant\biz\impl\MealBizImpl.java

............此處省略244個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源