• 大小: 21.28MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-01
  • 语言: Java
  • 标签: javaMySQL  

资源简介

是一个很实用很基础的的购物系统,包含注册,登录,查看商品,分类查询,购物车,购买商品等功能

资源截图

代码片段和文件信息

package action;
import java.util.Map;
import service.UserService;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import domain.UserVo;
public class LoginAction extends ActionSupport {
private String userName;
private String userPsw;
private UserService userService;
public String getuserName() {
return userName;
}
public void setuserName(String userName) {
this.userName = userName;
}
public String getuserPsw() {
return userPsw;
}
public void setuserPsw(String userPsw) {
this.userPsw = userPsw;
}
public UserService getUserService() {
return userService;
}
public void setUserService(UserService userService) {
this.userService = userService;
}
@SuppressWarnings(“unchecked“)
public String execute() throws Exception{
UserVo result=userService.findByProperty(userName userPsw);
if(result!=null){
Map session=ActionContext.getContext().getSession();
if(session.containsKey(“userVo“))
session.put(“cart“ result);
session.put(“userVo“ result);
return SUCCESS;
}
else
return ERROR;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-06-23 21:16  ShoppingSystem\
     文件        6039  2014-06-23 16:45  ShoppingSystem\.classpath
     目录           0  2014-10-20 13:37  ShoppingSystem\.myeclipse\
     文件         315  2014-06-23 21:18  ShoppingSystem\.mymetadata
     文件        1204  2014-06-23 16:35  ShoppingSystem\.project
     目录           0  2014-06-23 21:16  ShoppingSystem\.settings\
     文件         406  2014-06-23 16:35  ShoppingSystem\.settings\.jsdtscope
     文件          49  2014-06-23 16:35  ShoppingSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2014-06-23 16:35  ShoppingSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2014-06-23 21:16  ShoppingSystem\WebRoot\
     目录           0  2014-06-23 21:16  ShoppingSystem\WebRoot\meta-INF\
     文件          39  2014-06-23 16:35  ShoppingSystem\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2014-06-23 21:16  ShoppingSystem\WebRoot\WEB-INF\
     目录           0  2014-06-23 22:33  ShoppingSystem\WebRoot\WEB-INF\classes\
     文件        1349  2014-06-23 16:43  ShoppingSystem\WebRoot\WEB-INF\classes\Application.properties
     文件        1348  2014-06-23 16:43  ShoppingSystem\WebRoot\WEB-INF\classes\Application_en_US.properties
     文件        2378  2014-06-23 16:43  ShoppingSystem\WebRoot\WEB-INF\classes\Application_ja.properties
     文件        1907  2014-06-23 16:43  ShoppingSystem\WebRoot\WEB-INF\classes\Application_zh_CN.properties
     目录           0  2014-06-23 22:19  ShoppingSystem\WebRoot\WEB-INF\classes\action\
     文件        1758  2014-06-23 22:06  ShoppingSystem\WebRoot\WEB-INF\classes\action\LoginAction.class
     文件         743  2014-06-23 22:21  ShoppingSystem\WebRoot\WEB-INF\classes\action\LoginOut.class
     文件        2735  2014-06-23 22:19  ShoppingSystem\WebRoot\WEB-INF\classes\action\RegisterAction.class
     文件        3182  2014-06-23 22:28  ShoppingSystem\WebRoot\WEB-INF\classes\applicationContext.xml
     目录           0  2014-06-23 21:37  ShoppingSystem\WebRoot\WEB-INF\classes\dao\
     文件         348  2014-06-23 21:18  ShoppingSystem\WebRoot\WEB-INF\classes\dao\CartDAO.class
     文件         141  2014-06-23 21:18  ShoppingSystem\WebRoot\WEB-INF\classes\dao\OrdersDAO.class
     文件         271  2014-06-23 21:18  ShoppingSystem\WebRoot\WEB-INF\classes\dao\ProductInfoDAO.class
     文件         209  2014-06-23 21:18  ShoppingSystem\WebRoot\WEB-INF\classes\dao\ProductSortDAO.class
     文件         256  2014-06-23 21:18  ShoppingSystem\WebRoot\WEB-INF\classes\dao\UserDAO.class
     文件        1975  2014-06-23 21:51  ShoppingSystem\WebRoot\WEB-INF\classes\dao\UserDAOImpl.class
     目录           0  2014-06-23 21:18  ShoppingSystem\WebRoot\WEB-INF\classes\database\
............此处省略167个文件信息

评论

共有 条评论