资源简介
会员管理系统 struts+hibernate+spring 完整,可二次开发 推荐
代码片段和文件信息
package com.ssh.im2010.action;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.opensymphony.xwork2.ActionSupport;
import com.ssh.im2010.model.Vip;
import com.ssh.im2010.service.PageService;
import com.ssh.im2010.service.VipService;
import com.ssh.im2010.utilBean.Page;
@Component(“vipAction“)
@Scope(“prototype“)
public class VipAction extends ActionSupport {
/**
*
*/
private static final long serialVersionUID = 1L;
private String id;
private String name;
private Vip vip;
private VipService vipService;
private List vips ;
private Page page;
private int requestedPage;
private PageService pageService;
//getters and setters
public PageService getPageService() {
return pageService;
}
@Resource
public void setPageService(PageService pageService) {
this.pageService = pageService;
}
public int getRequestedPage() {
return requestedPage;
}
public void setRequestedPage(int requestedPage) {
this.requestedPage = requestedPage;
}
public static long getSerialVersionUID() {
return serialVersionUID;
}
public Page getPage() {
return page;
}
@Resource
public void setPage(Page page) {
this.page = page;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Vip getVip() {
return vip;
}
public void setVip(Vip vip) {
this.vip = vip;
}
public VipService getVipService() {
return vipService;
}
@Resource
public void setVipService(VipService vipService) {
this.vipService = vipService;
}
public List getVips() {
return vips;
}
public void setVips(List vips) {
this.vips = vips;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
//业务逻辑
public String addInput(){
vipService.add(vip);
return “true“;
}
public String deleteById(){
vipService.delete(id);
return “true“;
}
public String list(){
vips = vipService.loadAllVip();
return “success“;
}
public String updateInput(){
vip = vipService.loadById(id);
return “updateInput“;
}
public String update(){
vipService.update(vip id);
return “true“;
}
public String loadByName(){
vips = vipService.loadByName(name);
return “success“;
}
public String loadVips(){
if (requestedPage <= 0) {
requestedPage = page.getPageCount();
}
this.page.setPageNow(requestedPage);
vips = pageService.getVips(requestedPage);
return “success“;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2579 2010-11-21 23:57 Copy of S2SH\.classpath
文件 455 2010-11-21 22:27 Copy of S2SH\.myhibernatedata
文件 302 2010-11-29 13:52 Copy of S2SH\.myme
文件 1640 2010-11-26 09:57 Copy of S2SH\.project
文件 1040 2010-11-22 11:38 Copy of S2SH\.settings\com.genuitec.eclipse.j2eedt.core.prefs
文件 217 2010-11-21 22:28 Copy of S2SH\.settings\org.springfr
文件 479 2010-11-21 22:28 Copy of S2SH\.springBeans
文件 2714 2010-11-24 19:10 Copy of S2SH\src\com\ssh\im2010\action\VipAction.java
文件 1563 2010-11-24 12:45 Copy of S2SH\src\com\ssh\im2010\dao\impl\VipDaoImpl.java
文件 365 2010-11-21 23:31 Copy of S2SH\src\com\ssh\im2010\dao\VipDao.java
文件 1290 2010-11-22 12:58 Copy of S2SH\src\com\ssh\im2010\model\Vip.java
文件 1217 2010-11-24 19:49 Copy of S2SH\src\com\ssh\im2010\service\impl\VipPageServiceImpl.java
文件 940 2010-11-22 00:09 Copy of S2SH\src\com\ssh\im2010\service\impl\VipServiceImpl.java
文件 242 2010-11-22 18:31 Copy of S2SH\src\com\ssh\im2010\service\PageService.java
文件 359 2010-11-21 23:34 Copy of S2SH\src\com\ssh\im2010\service\VipService.java
文件 1083 2010-11-24 12:58 Copy of S2SH\src\com\ssh\im2010\utilBean\Page.java
文件 131 2010-11-21 19:58 Copy of S2SH\src\jdbc.properties
文件 1543 2010-11-21 19:58 Copy of S2SH\src\log4j.properties
文件 611 2010-11-24 19:09 Copy of S2SH\src\struts.xm
文件 2494 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\CSS\left.css
文件 896 2010-11-24 19:47 Copy of S2SH\WebRoot\backstage\CSS\list.css
文件 617 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\CSS\login.css
文件 2884 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\CSS\public.css
文件 389426 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\images\2.jpg
文件 1135 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\images\addNote.gif
文件 5551 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\images\bg.gif
文件 4467 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\images\bg_banner_menu.gif
文件 590 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\images\bg_button_blue.gif
文件 1210 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\images\bg_button_del.gif
文件 1204 2010-11-21 19:58 Copy of S2SH\WebRoot\backstage\images\bg_button_update.gif
............此处省略193个文件信息
评论
共有 条评论