package com.bzu.action;
import com.bzu.entity.Student;
import com.bzu.service.StudentService;
import com.opensymphony.xwork2.ActionSupport;
public class StudentAction extends ActionSupport {
private String username;
private String password;
//private Student student;
private StudentService service;
@Override
public String execute() throws Exception {
// TODO Auto-generated method stub
Student student = new Student(username, password);
System.out.println(student == null);
service.login(student);
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 StudentService getService() {
return service;
}
// public Student getStudent() {
// return student;
// }
//
// public void setStudent(Student student) {
// this.student = student;
// }
public void setService(StudentService service) {
this.service = service;
}
// public static void main(String[] args) {
// ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
// "beans.xml");
//
// StudentAction action = (StudentAction) context.getBean("StudentAction");
//
// System.out.println(action == null);
//
// StudentService ser = action.getService();
//
// ser.login(new Student("ss", "ss"));
//
// }
}
没有合适的资源?快使用搜索试试~ 我知道了~
spring+struts2整合源码
共58个文件
jar:28个
xml:7个
java:6个
4星 · 超过85%的资源 需积分: 9 192 下载量 72 浏览量
2012-06-15
14:36:31
上传
评论
收藏 13.02MB ZIP 举报
温馨提示
详细介绍:细谈Spring(十一)深入理解spring+struts2整合(附源码)http://blog.csdn.net/csh624366188/article/details/7666280
资源推荐
资源详情
资源评论
收起资源包目录
SpringAndStruts2.zip (58个子文件)
SpringAndStruts2
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 500B
org.eclipse.jdt.core.prefs 330B
src
beans.xml 1KB
com
bzu
dao
StudentDao.java 134B
impl
StudentDaoImpl.java 279B
action
StudentAction.java 1KB
service
impl
StudentServiceImpl.java 431B
StudentService.java 139B
entity
Student.java 531B
Student.hbm.xml 674B
struts.xml 455B
.project 1KB
WebRoot
META-INF
MANIFEST.MF 36B
WEB-INF
web.xml 1KB
classes
beans.xml 1KB
com
bzu
dao
StudentDao.class 159B
impl
StudentDaoImpl.class 937B
action
StudentAction.class 2KB
service
StudentService.class 171B
impl
StudentServiceImpl.class 810B
entity
Student.hbm.xml 674B
Student.class 816B
struts.xml 455B
lib
mysql-connector-java-3.1.13-bin.jar 446KB
commons-collections-3.1.jar 546KB
hibernate-annotations.jar 273KB
dom4j-1.6.1.jar 307KB
spring.jar 2.81MB
ejb3-persistence.jar 49KB
struts2-spring-plugin-2.1.6.jar 9KB
xwork-2.1.2.jar 2.18MB
common-annotations.jar 6KB
ognl-2.6.11.jar 164KB
javassist-3.9.0.GA.jar 583KB
hibernate-commons-annotations.jar 65KB
aspectjweaver.jar 1.47MB
commons-logging-1.1.jar 52KB
cglib-nodep-2.1_3.jar 317KB
aspectjrt.jar 112KB
commons-pool.jar 61KB
commons-fileupload-1.2.1.jar 56KB
slf4j-api-1.5.8.jar 23KB
commons-dbcp.jar 119KB
struts2-core-2.1.6.jar 719KB
log4j-1.2.15.jar 383KB
commons-io-1.3.2.jar 86KB
slf4j-log4j12-1.5.8.jar 9KB
jta-1.1.jar 13KB
freemarker-2.3.13.jar 850KB
antlr-2.7.6.jar 433KB
hibernate3.jar 2.31MB
index.jsp 1KB
fail.jsp 860B
success.jsp 864B
.mymetadata 321B
.classpath 3KB
.myeclipse
共 58 条
- 1
曹胜欢
- 粉丝: 1w+
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页