package com.action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.pojo.Product;
import com.service.ProductService;
public class ProductAction extends ActionSupport implements ModelDriven<Product>{
/**
*
*/
private static final long serialVersionUID = 6299996049583969889L;
//模型驱动使用的类;
private Product product = new Product();
@Override
public Product getModel() {
// TODO Auto-generated method stub
return product;
}
//Struts整合Spring过程中按名称自动注入的类
private ProductService productService;
public void setProductService(ProductService productService) {
this.productService = productService;
}
public String actionSave(){
System.out.println("action is exeing...");
productService.servcieSave(product);
return SUCCESS;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
SSH之最新简单整合,Struts-2.5.10.1+Spring 4.3.8+Hibernate5.2.10
共73个文件
jar:39个
xml:10个
java:5个
5星 · 超过95%的资源 需积分: 9 92 下载量 4 浏览量
2017-06-12
16:34:27
上传
评论
收藏 20.01MB ZIP 举报
温馨提示
Struts-2.5.10.1+Spring 4.3.8+Hibernate5.2.10
资源推荐
资源详情
资源评论
收起资源包目录
myJob.zip (73个子文件)
myJob
.project 1KB
.springBeans 417B
WebContent
WEB-INF
lib
mchange-commons-java-0.2.11.jar 592KB
jboss-transaction-api_1.2_spec-1.0.1.Final.jar 28KB
asm-commons-5.1.jar 46KB
commons-fileupload-1.3.2.jar 69KB
spring-jdbc-4.3.8.RELEASE.jar 418KB
dom4j-1.6.1.jar 307KB
struts2-convention-plugin-2.5.10.1.jar 83KB
spring-core-4.3.8.RELEASE.jar 1.07MB
spring-expression-4.3.8.RELEASE.jar 257KB
spring-orm-4.3.8.RELEASE.jar 466KB
javassist-3.20.0-GA.jar 733KB
asm-tree-5.1.jar 28KB
jboss-logging-3.3.0.Final.jar 65KB
spring-context-4.3.8.RELEASE.jar 1.09MB
struts2-spring-plugin-2.5.10.1.jar 22KB
commons-lang3-3.4.jar 424KB
c3p0-0.9.5.2.jar 486KB
spring-test-4.3.8.RELEASE.jar 585KB
log4j-core-2.7.jar 1.24MB
spring-beans-4.3.8.RELEASE.jar 745KB
asm-5.1.jar 52KB
hibernate-jpa-2.1-api-1.0.0.Final.jar 111KB
jandex-2.0.3.Final.jar 182KB
struts2-core-2.5.10.1.jar 1.52MB
classes12.jar 1.53MB
hibernate-core-5.2.10.Final.jar 6.31MB
antlr-2.7.7.jar 435KB
spring-tx-4.3.8.RELEASE.jar 261KB
log4j-api-2.7.jar 214KB
commons-logging-1.1.3.jar 61KB
classmate-1.3.0.jar 63KB
freemarker-2.3.23.jar 1.29MB
spring-aspects-4.3.8.RELEASE.jar 57KB
commons-io-2.4.jar 181KB
hibernate-c3p0-5.2.10.Final.jar 11KB
hibernate-commons-annotations-5.0.1.Final.jar 74KB
spring-aop-4.3.8.RELEASE.jar 372KB
spring-web-4.3.8.RELEASE.jar 799KB
ognl-3.1.12.jar 230KB
web.xml 1KB
web
success.jsp 389B
META-INF
MANIFEST.MF 39B
css
table.css 667B
addProduct.jsp 881B
src
log4j2.xml 533B
struts.xml 656B
applicationContext.xml 3KB
com
service
ProductService.java 391B
pojo
Product.java 466B
Product.hbm.xml 721B
action
MyJobAction.java 738B
ProductAction.java 862B
dao
ProductDAO.java 394B
jdbc.properties 140B
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 331B
org.eclipse.jdt.core.prefs 364B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.component 467B
.jsdtscope 567B
build
classes
log4j2.xml 533B
struts.xml 656B
applicationContext.xml 3KB
com
service
ProductService.class 824B
pojo
Product.hbm.xml 721B
Product.class 1020B
action
MyJobAction.class 1KB
ProductAction.class 1KB
dao
ProductDAO.class 940B
jdbc.properties 140B
.classpath 828B
共 73 条
- 1
资源评论
- kenix2018-11-09非常好的资源 ,亲测可用
- 羊云飞2017-06-20参考例子学习一下,谢谢楼主
- Andy2382017-06-13没有说明你的运行环境,这边运行不了。袁文郎2017-06-13运行环境:java8+Eclipse Neon.2 Release (4.6.2)+Tomcat7+oracle10g
袁文郎
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功