package com.test.action;
import java.util.List;
import com.opensymphony.xwork2.ActionSupport;
import com.test.entity.Test;
import com.test.service.TestService;
/**
*
*
*/
public class TestAction extends ActionSupport {
/**
*
*/
private static final long serialVersionUID = -1314518014039734426L;
private String name;
private String msg;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
@Override
public String execute() throws Exception {
System.out.println("=========execute=================");
return "success";
}
public String test() throws Exception {
System.out.println("==========test================");
System.out.println("name:"+name);
return "success";
}
private TestService testService;
private Test test;
private List<Test> list;
public Test getTest() {
return test;
}
public void setTest(Test test) {
this.test = test;
}
public List<Test> getList() {
return list;
}
public void setList(List<Test> list) {
this.list = list;
}
public void setTestService(TestService testService) {
this.testService = testService;
}
public String add(){
this.testService.addTest(test);
return "success";
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Eclipse搭建的空白原始ssh2.7z (82个子文件)
ssh2
.project 1KB
WebContent
WEB-INF
lib
hibernate-commons-annotations.jar 65KB
commons-collections-3.2.jar 558KB
oro-2.0.8.jar 64KB
spring.jar 2.81MB
sslext-1.2-0.jar 26KB
javassist-3.7.ga.jar 531KB
dom4j-1.6.1.jar 307KB
classworlds-1.1.jar 37KB
json-lib-2.1-jdk15.jar 122KB
commons-pool.jar 61KB
struts2-json-plugin-2.2.1.jar 55KB
spring-web-2.5.6.jar 190KB
jstl-1.2.jar 405KB
jstl.jar 20KB
antlr-2.7.2.jar 350KB
asm-commons-2.2.3.jar 15KB
asm-util-2.2.3.jar 34KB
spring-core-2.5.6.jar 279KB
struts2-convention-plugin-2.2.1.jar 64KB
commons-beanutils-1.7.0.jar 184KB
commons-dbcp.jar 119KB
spring-context-2.5.6.jar 466KB
mysql-connector-java-5.1.5-bin.jar 661KB
commons-validator-1.3.1.jar 136KB
struts2-core-2.2.1.jar 755KB
commons-digester-2.0.jar 145KB
commons-chain-1.2.jar 90KB
slf4j-api-1.6.1.jar 25KB
pager-taglib.jar 46KB
struts2-spring-plugin-2.2.1.jar 21KB
commons-io-1.3.2.jar 86KB
hibernate3.jar 2.64MB
commons-fileupload-1.2.1.jar 56KB
struts2-embeddedjsp-plugin-2.2.1.jar 662KB
freemarker-2.3.16.jar 860KB
ognl-3.0.jar 224KB
ejb3-persistence.jar 49KB
aopalliance-1.0.jar 4KB
xwork-core-2.2.1.jar 997KB
hibernate-annotations.jar 273KB
standard.jar 384KB
commons-logging-api-1.1.jar 44KB
commons-logging-1.0.4.jar 37KB
spring-beans-2.5.6.jar 477KB
jta.jar 13KB
asm-2.2.3.jar 34KB
jstl-api-1.2.jar 30KB
commons-lang-2.3.jar 240KB
web.xml 1KB
index.jsp 398B
test
test_add.jsp 1KB
META-INF
MANIFEST.MF 39B
index2.jsp 406B
src
struts.xml 2KB
applicationContext.xml 2KB
com
test
service
TestService.java 261B
TestServiceImpl.java 718B
action
TestAction.java 1KB
dao
TestDaoImpl.java 876B
TestDao.java 253B
entity
Test.java 467B
Test.hbm.xml 766B
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 349B
org.eclipse.wst.ws.service.policy.prefs 87B
org.eclipse.jdt.core.prefs 598B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs 117B
org.eclipse.core.resources.prefs 57B
org.eclipse.wst.common.component 464B
.jsdtscope 503B
build
classes
struts.xml 2KB
applicationContext.xml 2KB
com
test
service
TestServiceImpl.class 1KB
TestService.class 369B
action
TestAction.class 2KB
dao
TestDaoImpl.class 2KB
TestDao.class 357B
entity
Test.class 906B
Test.hbm.xml 766B
.classpath 845B
共 82 条
- 1
资源评论
花海残阳
- 粉丝: 4
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功