资源简介

适用于初学习struts2的人,里边分了显示层,action层,service层,dao层,四个层次。分别有对管理员和用户的不同界面。

资源截图

代码片段和文件信息

package nuc.sw.action;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

import nuc.sw.entity.commodity;
import nuc.sw.service.CommodityService;

public class addCommodityAction extends ActionSupport implements ModelDriven {
  private  commodity c = new commodity();
  private CommodityService cService = new CommodityService();

public commodity getC() {
return c;
}

public void setC(commodity c) {
this.c = c;
}

public CommodityService getcService() {
return cService;
}

public void setcService(CommodityService cService) {
this.cService = cService;
}
public String addCommodityMethod() {
cService.saveCommodity(c);
return “addCommodityOK“;

}

@Override
public commodity getModel() {
// TODO Auto-generated method stub
return c;
}
  


}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        842  2018-11-19 14:56  20181125_wq_Work\.classpath

     文件        916  2018-11-25 20:20  20181125_wq_Work\.project

     文件        567  2018-11-19 14:56  20181125_wq_Work\.settings\.jsdtscope

     文件        160  2018-12-09 18:44  20181125_wq_Work\.settings\org.eclipse.core.resources.prefs

     文件        364  2018-11-19 14:56  20181125_wq_Work\.settings\org.eclipse.jdt.core.prefs

     文件        500  2018-11-25 20:21  20181125_wq_Work\.settings\org.eclipse.wst.common.component

     文件        345  2018-11-19 14:56  20181125_wq_Work\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-11-19 14:56  20181125_wq_Work\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-11-19 14:56  20181125_wq_Work\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       1496  2018-11-28 22:19  20181125_wq_Work\build\classes\nuc\sw\action\addCommodityAction.class

     文件        322  2018-11-28 22:19  20181125_wq_Work\build\classes\nuc\sw\action\AdminLoginAction.class

     文件        454  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\clientsreceiving\add1ClientAction.class

     文件       1636  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\clientsreceiving\addClientAction.class

     文件       1289  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\clientsreceiving\deleteClientAction.class

     文件       2213  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\clientsreceiving\selectClientAction.class

     文件        474  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\clientsreceiving\transferClientAction.class

     文件       1516  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\commodity\addCommodityAction.class

     文件       1574  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\commodity\deleteCommodityAction.class

     文件       1905  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\commodity\getNameCommodityAction.class

     文件       2231  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\commodity\getOneCommodityAction.class

     文件       2309  2018-12-13 11:40  20181125_wq_Work\build\classes\nuc\sw\action\commodity\loginCommodityAction.class

     文件       2647  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\commodity\selectCommodityAction.class

     文件       1154  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\commodity\showCommodityAction.class

     文件       2288  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\commodity\update1CommodityAction.class

     文件       2119  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\commodity\updateCommodityAction.class

     文件       2001  2018-11-28 22:19  20181125_wq_Work\build\classes\nuc\sw\action\deleteCommodityAction.class

     文件       2049  2018-11-28 22:19  20181125_wq_Work\build\classes\nuc\sw\action\getOneCommodityAction.class

     文件        495  2018-12-09 09:07  20181125_wq_Work\build\classes\nuc\sw\action\index\indexAction.class

     文件       2440  2018-12-12 22:40  20181125_wq_Work\build\classes\nuc\sw\action\order\deleteOrderAction.class

     文件       2995  2018-12-13 13:11  20181125_wq_Work\build\classes\nuc\sw\action\order\selectOrderAction.class

............此处省略203个文件信息

评论

共有 条评论