package com.demo.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
import com.demo.pojo.Interface;
import com.demo.service.impl.DemoServiceImpl;
import com.opensymphony.xwork2.ActionSupport;
public class DemoAction extends ActionSupport {
private HttpServletRequest request = ServletActionContext.getRequest();
private DemoServiceImpl demoService;
private Interface object;
public void setDemoService(DemoServiceImpl demoService) {
this.demoService = demoService;
}
public Interface getObject() {
return object;
}
public void setObject(Interface object) {
this.object = object;
}
@Override
public String execute() throws Exception {
System.out.println("测试测试");
return super.execute();
}
public String addInterface() {
this.demoService.addInterface(object);
return "success";
}
public String queryInterfaces() {
List interfaceList = this.demoService.queryInterfaces();
this.request.setAttribute("interfaceList", interfaceList);
return "success";
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
SSH2框架的web项目 (108个子文件)
DemoAction.class 2KB
DemoDaoImpl.class 2KB
Interface.class 1KB
DemoServiceImpl.class 822B
BaseDaoImpl.class 646B
.classpath 5KB
hibernate3.jar 2.31MB
ojdbc14.jar 1.29MB
jbosscache-core-3.1.0.GA.jar 1.1MB
freemarker-2.3.16.jar 860KB
org.springframework.context-3.1.0.RC1.jar 788KB
struts2-core-2.2.3.1.jar 756KB
jboss-cache-1.4.1.GA.jar 690KB
xwork-core-2.2.3.1.jar 602KB
c3p0-0.9.1.jar 594KB
javassist-3.9.0.GA.jar 583KB
org.springframework.beans-3.1.0.RC1.jar 573KB
org.springframework.web.servlet-3.1.0.RC1.jar 550KB
commons-collections-3.1.jar 546KB
org.springframework.web-3.1.0.RC1.jar 526KB
proxool-0.8.3.jar 465KB
antlr-2.7.6.jar 433KB
org.springframework.core-3.1.0.RC1.jar 429KB
velocity-1.6.3.jar 411KB
org.springframework.jdbc-3.1.0.RC1.jar 392KB
org.springframework.orm-3.1.0.RC1.jar 369KB
log4j-1.2.14.jar 359KB
org.springframework.aop-3.1.0.RC1.jar 324KB
dom4j-1.6.1.jar 307KB
commons-lang-2.5.jar 273KB
cglib-2.2.jar 272KB
org.springframework.transaction-3.1.0.RC1.jar 241KB
ognl-3.0.1.jar 224KB
org.springframework.test-3.1.0.RC1.jar 223KB
ehcache-1.2.3.jar 203KB
org.springframework.jms-3.1.0.RC1.jar 190KB
commons-beanutils-1.7.0.jar 184KB
org.springframework.web.portlet-3.1.0.RC1.jar 181KB
org.springframework.expression-3.1.0.RC1.jar 172KB
commons-io-2.0.1.jar 156KB
oscache-2.1.jar 112KB
org.springframework.context.support-3.1.0.RC1.jar 98KB
org.springframework.oxm-3.1.0.RC1.jar 68KB
commons-logging-1.1.1.jar 59KB
commons-fileupload-1.2.2.jar 58KB
org.springframework.asm-3.1.0.RC1.jar 52KB
org.springframework.aspects-3.1.0.RC1.jar 47KB
commons-logging-api-1.1.jar 44KB
asm-3.1.jar 42KB
asm-commons-3.1.jar 32KB
org.springframework.web.struts-3.1.0.RC1.jar 31KB
swarmcache-1.0RC2.jar 30KB
slf4j-api-1.5.8.jar 23KB
struts2-spring-plugin-2.2.3.1.jar 21KB
jta-1.1.jar 13KB
org.springframework.instrument.tomcat-3.1.0.RC1.jar 11KB
org.springframework.instrument-3.1.0.RC1.jar 7KB
slf4j-nop-1.5.2.jar 6KB
aopalliance-1.0.jar 4KB
DemoAction.java 1KB
Interface.java 758B
DemoDaoImpl.java 660B
DemoServiceImpl.java 453B
BaseDaoImpl.java 335B
index.jsp 2KB
error.jsp 842B
org.springframework.spring-library-3.1.0.RC1.libd 1KB
MANIFEST.MF 443B
MANIFEST.MF 36B
.myhibernatedata 591B
.mymetadata 285B
.mystrutsdata 240B
.project 2KB
jdbc.properties 141B
jdbc.properties 141B
.springBeans 415B
fmt.tld 19KB
c.tld 16KB
fmt-1_0.tld 12KB
x.tld 12KB
fmt-rt.tld 12KB
fmt-1_0-rt.tld 11KB
c-1_0.tld 11KB
c-rt.tld 11KB
c-1_0-rt.tld 11KB
sql.tld 8KB
x-1_0.tld 7KB
x-rt.tld 7KB
fn.tld 7KB
x-1_0-rt.tld 7KB
sql-1_0.tld 6KB
sql-rt.tld 5KB
sql-1_0-rt.tld 5KB
scriptfree.tld 2KB
permittedTaglibs.tld 1KB
applicationContext_Demo.xml 4KB
applicationContext_Demo.xml 4KB
web.xml 2KB
demoDao.xml 941B
demoDao.xml 941B
共 108 条
- 1
- 2
资源评论
- wuzl2015-12-23很好 值得学习
CS568591377
- 粉丝: 2
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功