JSP MYSQL校园二手交易系统
JSP MYSQL校园二手交易系统 的主要功能包括:商品管理、拍卖管理与前台网站展示。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2636 2018-06-10 22:36 JSP+MYSQL二手交易系统db_c2c.sql
文件 5186 2018-06-02 17:13 JSP+MYSQL二手交易系统ershou.classpath
文件 529 2018-06-03 09:08 JSP+MYSQL二手交易系统ershou.myhibernatedata
文件 291 2018-06-09 23:39 JSP+MYSQL二手交易系统ershou.mymetadata
文件 1634 2018-06-02 14:56 JSP+MYSQL二手交易系统ershou.project
文件 145 2018-06-10 09:51 JSP+MYSQL二手交易系统ershou.settingsorg.eclipse.core.resources.prefs
文件 330 2018-06-01 21:17 JSP+MYSQL二手交易系统ershou.settingsorg.eclipse.jdt.core.prefs
文件 273 2018-06-05 12:36 JSP+MYSQL二手交易系统ershou.springBeans
文件 2785 2018-06-01 22:33 JSP+MYSQL二手交易系统ershousrccomactionadminAction.java
文件 2657 2018-06-10 11:23 JSP+MYSQL二手交易系统ershousrccomactionliuyanAction.java
文件 3980 2018-06-10 12:20 JSP+MYSQL二手交易系统ershousrccomdaoTAdminDAO.java
文件 3729 2018-06-09 17:14 JSP+MYSQL二手交易系统ershousrccomdaoTUserDAO.java
文件 782 2018-06-09 09:12 JSP+MYSQL二手交易系统ershousrccommodelTAdmin.hbm.xml
文件 887 2018-06-05 16:58 JSP+MYSQL二手交易系统ershousrccommodelTAdmin.java
文件 3940 2018-06-01 20:36 JSP+MYSQL二手交易系统ershousrccommodelTUser.hbm.xml
文件 6293 2018-06-07 09:43 JSP+MYSQL二手交易系统ershousrccommodelTUser.java
文件 683 2018-06-04 10:24 JSP+MYSQL二手交易系统ershousrccomservicecatelogService.java
文件 1956 2018-06-05 07:43 JSP+MYSQL二手交易系统ershousrccomserviceloginService.java
文件 2451 2018-06-07 03:52 JSP+MYSQL二手交易系统ershousrccomutilPagination.java
文件 1589 2018-06-04 16:54 JSP+MYSQL二手交易系统ershousrclog4j.properties
文件 0 2018-06-08 07:42 JSP+MYSQL二手交易系统ershousrcmessages_en_US.properties
文件 8 2018-06-08 10:17 JSP+MYSQL二手交易系统ershousrcmessages_zh_CN.properties
文件 3526 2018-06-10 16:08 JSP+MYSQL二手交易系统ershousrcstruts.properties
文件 5828 2018-06-09 14:19 JSP+MYSQL二手交易系统ershousrcstruts.xml
文件 2812 2018-06-09 04:25 JSP+MYSQL二手交易系统ershouWebRootadminindexadminAdd.jsp
文件 2945 2018-06-04 15:54 JSP+MYSQL二手交易系统ershouWebRootadminindexadminManage.jsp
文件 2573 2018-06-10 20:25 JSP+MYSQL二手交易系统ershouWebRootadminindexsysPro.jsp
文件 877 2018-06-07 16:14 JSP+MYSQL二手交易系统ershouWebRootadminindex.jsp
文件 981 2018-06-06 12:25 JSP+MYSQL二手交易系统ershouWebRootadminjslist_nav.js
文件 2299 2018-06-04 23:31 JSP+MYSQL二手交易系统ershouWebRootadminliuyanliuyanMana.jsp
............此处省略978个文件信息
package com.action;
import java.util.List;
import java.util.Map;
import org.apache.struts2.ServletActionContext;
import com.dao.TAdminDAO;
import com.model.TAdmin;
import com.opensymphony.xwork2.ActionSupport;
import com.util.Pagination;
public class adminAction extends ActionSupport
{
private int userId;
private String userName;
private String userPw;
private String message;
private String path;
private int index=1;
private TAdminDAO adminDAO;
public String adminAdd()
{
TAdmin admin=new TAdmin();
admin.setUserName(userName);
admin.setUserPw(userPw);
adminDAO.save(admin);
this.setMessage(“操作成功“);
this.setPath(“adminManage.action“);
return “succeed“;
}
public String adminManage()
{
List adminList=adminDAO.findAll();
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“adminList“ adminList);
return ActionSupport.SUCCESS;
}
public String adminManageFenye()
{
List adminList=adminDAO.findAll();
int pageSize=3;
int fromIndex = (index - 1) * pageSize;
int toIndex = Math.min(fromIndex + pageSize adminList.size());
List adminListFenye = adminList.subList(fromIndex toIndex);
Pagination p = new Pagination();//创建 分页对象
p.setIndex(index);//设置页数
p.setPageSize(pageSize);
p.setTotle(adminList.size());//设置总共的条数
p.setData(adminListFenye);//设置数据
p.setPath(“adminManageFenye.action?“);//跳转的路径
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“page“ p);
return ActionSupport.SUCCESS;
}
public String adminDel()
{
adminDAO.delete(adminDAO.findById(userId));
this.setMessage(“删除成功“);
this.setPath(“adminManage.action“);
return “succeed“;
}
public TAdminDAO getAdminDAO()
{
return adminDAO;
}
public void setAdminDAO(TAdminDAO adminDAO)
{
this.adminDAO = adminDAO;
}
public String getMessage()
{
return message;
}
public int getIndex()
{
return index;
}
public void setIndex(int index)
{
this.index = index;
}
public void setMessage(String message)
{
this.message = message;
}
public String getPath()
{
return path;
}
public void setPath(String path)
{
this.path = path;
}
public int getUserId()
{
return userId;
}
public void setUserId(int userId)
{
this.userId = userId;
}
public String getUserName()
{
return userName;
}
public void setUserName(String userName)
{
this.userName = userName;
}
public String getUserPw()
{
return userPw;
}
public void setUserPw(String userPw)
{
this.userPw = userPw;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2636 2018-06-10 22:36 JSP+MYSQL二手交易系统db_c2c.sql
文件 5186 2018-06-02 17:13 JSP+MYSQL二手交易系统ershou.classpath
文件 529 2018-06-03 09:08 JSP+MYSQL二手交易系统ershou.myhibernatedata
文件 291 2018-06-09 23:39 JSP+MYSQL二手交易系统ershou.myme
文件 1634 2018-06-02 14:56 JSP+MYSQL二手交易系统ershou.project
文件 145 2018-06-10 09:51 JSP+MYSQL二手交易系统ershou.settingsorg.eclipse.core.resources.prefs
文件 330 2018-06-01 21:17 JSP+MYSQL二手交易系统ershou.settingsorg.eclipse.jdt.core.prefs
文件 273 2018-06-05 12:36 JSP+MYSQL二手交易系统ershou.springBeans
文件 2785 2018-06-01 22:33 JSP+MYSQL二手交易系统ershousrccomactionadminAction.java
文件 2657 2018-06-10 11:23 JSP+MYSQL二手交易系统ershousrccomactionliuyanAction.java
文件 3980 2018-06-10 12:20 JSP+MYSQL二手交易系统ershousrccomdaoTAdminDAO.java
文件 3729 2018-06-09 17:14 JSP+MYSQL二手交易系统ershousrccomdaoTUserDAO.java
文件 782 2018-06-09 09:12 JSP+MYSQL二手交易系统ershousrccommodelTAdmin.hbm.xm
文件 887 2018-06-05 16:58 JSP+MYSQL二手交易系统ershousrccommodelTAdmin.java
文件 3940 2018-06-01 20:36 JSP+MYSQL二手交易系统ershousrccommodelTUser.hbm.xm
文件 6293 2018-06-07 09:43 JSP+MYSQL二手交易系统ershousrccommodelTUser.java
文件 683 2018-06-04 10:24 JSP+MYSQL二手交易系统ershousrccomservicecatelogService.java
文件 1956 2018-06-05 07:43 JSP+MYSQL二手交易系统ershousrccomserviceloginService.java
文件 2451 2018-06-07 03:52 JSP+MYSQL二手交易系统ershousrccomutilPagination.java
文件 1589 2018-06-04 16:54 JSP+MYSQL二手交易系统ershousrclog4j.properties
文件 0 2018-06-08 07:42 JSP+MYSQL二手交易系统ershousrcmessages_en_US.properties
文件 8 2018-06-08 10:17 JSP+MYSQL二手交易系统ershousrcmessages_zh_CN.properties
文件 3526 2018-06-10 16:08 JSP+MYSQL二手交易系统ershousrcstruts.properties
文件 5828 2018-06-09 14:19 JSP+MYSQL二手交易系统ershousrcstruts.xm
文件 2812 2018-06-09 04:25 JSP+MYSQL二手交易系统ershouWebRootadminindexadminAdd.jsp
文件 2945 2018-06-04 15:54 JSP+MYSQL二手交易系统ershouWebRootadminindexadminManage.jsp
文件 2573 2018-06-10 20:25 JSP+MYSQL二手交易系统ershouWebRootadminindexsysPro.jsp
文件 877 2018-06-07 16:14 JSP+MYSQL二手交易系统ershouWebRootadminindex.jsp
文件 981 2018-06-06 12:25 JSP+MYSQL二手交易系统ershouWebRootadminjslist_nav.js
文件 2299 2018-06-04 23:31 JSP+MYSQL二手交易系统ershouWebRootadminliuyanliuyanMana.jsp
............此处省略978个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)