资源简介
详细完整的OA系统源码,框架完成,里面不仅数据库,还有项目说明,还有后台管理,对需要整合代码以及需要项目实例的人会有很大帮助
代码片段和文件信息
package com.bjsxt.registration.action;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.bjsxt.registration.model.User;
import com.bjsxt.registration.service.UserManager;
import com.bjsxt.registration.vo.UserRegisterInfo;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
@Component(“u“)
@Scope(“prototype“)
public class UserAction extends ActionSupport implements ModelDriven {
private UserRegisterInfo info = new UserRegisterInfo();
private UserManager userManager;
private List users;
private User user;
public UserAction(){
System.out.println(“useraction created!“);
}
@Override
public String execute() throws Exception {
System.out.println(info.getUsername());
User u = new User();
u.setUsername(info.getUsername());
u.setPassword(info.getPassword());
if(userManager.exists(u)) {
return “fail“;
}
userManager.add(u);
return “success“;
}
public UserRegisterInfo getInfo() {
return info;
}
public void setInfo(UserRegisterInfo info) {
this.info = info;
}
//@Override
public object getModel() {
return info;
}
public String list() {
this.users = this.userManager.getUsers();
return “list“;
}
public List getUsers() {
return users;
}
public void setUsers(List users) {
this.users = users;
}
public String load() {
this.user = this.userManager.loadById(info.getId());
return “load“;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public UserManager getUserManager() {
return userManager;
}
@Resource
public void setUserManager(UserManager userManager) {
this.userManager = userManager;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2700 2009-12-19 17:45 Registration\.classpath
文件 310 2010-03-19 21:17 Registration\.myme
文件 1418 2010-03-19 20:46 Registration\.project
文件 45 2009-12-21 08:49 Registration\readme.txt
文件 500 2009-12-19 11:09 Registration\.settings\.jsdtscope
文件 1040 2010-03-19 20:45 Registration\.settings\com.genuitec.eclipse.j2eedt.core.prefs
文件 49 2009-12-19 11:09 Registration\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2009-12-19 11:09 Registration\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 3330 2010-03-19 21:14 Registration\src\beans.xm
文件 126 2010-03-18 12:21 Registration\src\jdbc.properties
文件 1543 2009-12-18 17:23 Registration\src\log4j.properties
文件 534 2009-12-22 08:45 Registration\src\struts.xm
文件 1925 2009-12-22 08:50 Registration\src\com\bjsxt\registration\action\UserAction.java
文件 294 2009-12-21 15:51 Registration\src\com\bjsxt\registration\dao\UserDao.java
文件 1545 2009-12-21 15:52 Registration\src\com\bjsxt\registration\dao\impl\UserDaoImpl.java
文件 777 2010-03-18 12:21 Registration\src\com\bjsxt\registration\model\User.java
文件 335 2009-12-21 15:52 Registration\src\com\bjsxt\registration\service\UserManager.java
文件 1289 2009-12-21 17:03 Registration\src\com\bjsxt\registration\service\impl\UserManagerImpl.java
文件 362 2009-12-18 17:29 Registration\src\com\bjsxt\registration\util\HibernateUtil.java
文件 674 2009-12-21 15:54 Registration\src\com\bjsxt\registration\vo\UserRegisterInfo.java
文件 1295 2009-12-21 16:34 Registration\test\com\bjsxt\registration\action\UserActionTest.java
文件 821 2009-12-19 09:31 Registration\test\com\bjsxt\registration\service\UserManagerTest.java
文件 1050 2009-12-21 17:10 Registration\WebRoot\register.jsp
文件 992 2009-12-19 11:10 Registration\WebRoot\registerDeal.jsp
文件 816 2009-12-18 15:59 Registration\WebRoot\registerFail.jsp
文件 819 2009-12-18 15:59 Registration\WebRoot\registerSuccess.jsp
文件 922 2009-12-21 17:08 Registration\WebRoot\user.jsp
文件 968 2009-12-21 11:03 Registration\WebRoot\userlist.jsp
文件 39 2009-12-18 15:36 Registration\WebRoot\me
文件 1887 2009-12-21 18:20 Registration\WebRoot\WEB-INF\web.xm
............此处省略82个文件信息
评论
共有 条评论