package com.bing.action;
import com.bing.entity.User;
import com.bing.service.UserService;
import com.opensymphony.xwork2.ActionSupport;
public class UserAction extends ActionSupport {
private UserService userService;
private String username;
private String password;
public String addUser() throws Exception {
System.out.println("username:" + username);
System.out.println("password:" + password);
User user = new User();
user.setUsername(username);
user.setPassword(password);
userService.save(user);
return SUCCESS;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public UserService getUserService() {
return userService;
}
public void setUserService(UserService userService) {
this.userService = userService;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Module2.zip (62个子文件)
Module2
.project 1KB
.settings
org.eclipse.core.resources.prefs 88B
.mymetadata 294B
WebRoot
WEB-INF
success.jsp 352B
web.xml 1KB
lib
classes
spring-context.xml 292B
spring-hibernate.xml 3KB
log4j.properties 1KB
com
bing
dao
UserDaoBean.class 2KB
UserDao.class 336B
test
UserServiceTest.class 1KB
action
UserAction.class 2KB
service
UserService.class 163B
UserServiceImpl.class 961B
entity
User.class 1KB
spring-actions.xml 284B
struts.xml 518B
spring-services.xml 425B
index.jsp 834B
META-INF
MANIFEST.MF 39B
regiest.jsp 519B
.myeclipse
src
spring-context.xml 292B
spring-hibernate.xml 3KB
log4j.properties 1KB
com
bing
dao
UserDao.java 268B
UserDaoBean.java 742B
test
UserServiceTest.java 806B
action
UserAction.java 1010B
service
UserService.java 127B
UserServiceImpl.java 409B
entity
User.java 894B
spring-actions.xml 284B
struts.xml 518B
spring-services.xml 425B
.classpath 2KB
var
log
kernel.log 0B
lib
freemarker-2.3.15.jar 859KB
struts2-spring-plugin-2.1.8.1.jar 16KB
commons-pool-1.3.jar 61KB
hibernate-commons-annotations.jar 65KB
hibernate-annotations.jar 273KB
jta-1.1.jar 13KB
hibernate3.jar 2.31MB
log4j-1.2.15.jar 383KB
commons-logging-1.0.4.jar 37KB
struts2-core-2.1.8.1.jar 738KB
ejb3-persistence.jar 49KB
dom4j.jar 307KB
commons-collections-3.1.jar 546KB
commons-fileupload-1.2.1.jar 56KB
javassist-3.9.0.GA.jar 583KB
dom4j-1.6.1.jar 307KB
commons-dbcp-1.2.2.jar 119KB
aspectjrt.jar 112KB
xwork-core-2.1.6.jar 1.49MB
mysql-connector-java-5.0.8-bin.jar 528KB
slf4j-api-1.5.8.jar 23KB
antlr-2.7.6.jar 433KB
slf4j-log4j12-1.5.6.jar 9KB
spring.jar 2.81MB
ognl-2.7.3.jar 234KB
aspectjweaver.jar 1.47MB
共 62 条
- 1
资源评论
- zhangwxsoftbrain2012-09-05J2EE SSH2架构设计 Struts2.1.8+Spring2.5.6+Hibernate3.3整合,采用AOP事务管理方式.
- hu83735512014-06-06很不错的学习工具
BingDuang
- 粉丝: 29
- 资源: 76
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功