package org.itfuture.www.action;
import java.util.List;
import org.itfuture.www.model.Person;
import org.itfuture.www.service.PersonService;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.Preparable;
/**
*
* @author 未来蓝图软件教育
* http://www.itfture.org
*/
public class PersonAction implements Preparable {
private PersonService service;
private List<Person> persons;
private Person person;
private Integer id;
public PersonAction(PersonService service) {
this.service = service;
}
public String execute() {
this.persons = service.findAll();
return Action.SUCCESS;
}
public String save() {
this.service.save(person);
this.person = new Person();
return execute();
}
public String remove() {
service.remove(id);
return execute();
}
public List<Person> getPersons()
{
System.out.println(persons+"*****************************");
return persons;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public void prepare() throws Exception {
if (id != null)
person = service.find(id);
}
public Person getPerson() {
return person;
}
public void setPerson(Person person) {
this.person = person;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
学习struts2,hibernate3(jpa注释编程),spring2,ajax的经典项目.rar
共194个文件
jar:166个
xml:8个
jsp:5个
4星 · 超过85%的资源 需积分: 9 109 下载量 47 浏览量
2008-11-25
12:34:29
上传
评论 1
收藏 41.82MB RAR 举报
温馨提示
学习struts2,hibernate3(jpa注释编程),spring2,ajax的经典项目.rar 学习struts2,hibernate3(jpa注释编程),spring2,ajax的经典项目.rar
资源推荐
资源详情
资源评论
收起资源包目录
学习struts2,hibernate3(jpa注释编程),spring2,ajax的经典项目.rar (194个子文件)
PersonAction.class 2KB
PersonServiceImpl.class 2KB
Person.class 1KB
PersonService.class 373B
.classpath 13KB
openjpa-0.9.7-incubating.jar 2.6MB
toplink-essentials.jar 2.33MB
struts2-core-2.0.11.jar 2.22MB
jruby.jar 2.21MB
hibernate3.jar 2.14MB
aspectjweaver.jar 1.79MB
groovy-1.0.jar 1.67MB
jasperreports-1.3.4.jar 1.61MB
jgroups-2.2.8.jar 1.53MB
itext-1.3.jar 1.08MB
xerces-2.6.2.jar 972KB
freemarker.jar 795KB
freemarker-2.3.8.jar 784KB
poi-2.5.1.jar 783KB
c3p0-0.9.1.jar 594KB
c3p0-0.9.1.1.jar 594KB
jxl.jar 590KB
jboss-jmx.jar 578KB
jboss-common.jar 573KB
commons-collections-3.2.jar 562KB
commons-collections-3.1.jar 546KB
struts.jar 537KB
velocity-dep-1.4.jar 506KB
myfaces-impl-1.1.2.jar 505KB
jboss-cache.jar 503KB
mysql-connector-java-5.0.4-bin.jar 484KB
proxool-0.8.3.jar 459KB
javassist.jar 458KB
xwork-2.0.4.jar 445KB
antlr-2.7.6.jar 426KB
quartz-all-1.6.0.jar 425KB
jboss-archive-browsing.jar 406KB
velocity-1.5.jar 384KB
spring-beans.jar 381KB
spring-beans-2.0.5.jar 380KB
ibatis-2.3.0.677.jar 371KB
log4j-1.2.14.jar 359KB
jmxri.jar 353KB
velocity-1.4.jar 353KB
antlr-2.7.2.jar 350KB
log4j-1.2.12.jar 350KB
log4j-1.2.9.jar 344KB
log4j-1.2.11.jar 343KB
backport-util-concurrent.jar 322KB
cglib-nodep-2.1_3.jar 315KB
struts-core-1.3.5.jar 312KB
dom4j-1.6.1.jar 303KB
spring-aop.jar 302KB
spring-webmvc.jar 278KB
bsh-2.0b4.jar 274KB
commons-httpclient.jar 271KB
hibernate-annotations.jar 257KB
myfaces-api-1.1.2.jar 246KB
commons-lang.jar 237KB
hessian-3.0.20.jar 230KB
jaxen-1.1-beta-7.jar 223KB
spring-jdbc.jar 222KB
jboss-system.jar 218KB
commons-lang-2.1.jar 204KB
ehcache-1.2.3.jar 203KB
jmxremote_optional.jar 199KB
serp-1.11.0.jar 185KB
commons-beanutils-1.7.0.jar 184KB
spring-core.jar 179KB
dwr-1.1-beta-3.jar 175KB
jmxremote.jar 170KB
commons-collections-2.1.1.jar 170KB
concurrent-1.3.2.jar 166KB
commons-digester-1.6.jar 164KB
ognl-2.6.11.jar 164KB
spring-context.jar 158KB
spring-context-2.0.5.jar 156KB
spring-web.jar 149KB
spring-web-2.0.5.jar 148KB
commons-digester-1.8.jar 140KB
spring-jms.jar 137KB
sitemesh-2.2.1.jar 130KB
spring-dao.jar 128KB
tiles-core-2.0.4.jar 123KB
jotm.jar 121KB
xml-apis.jar 121KB
commons-dbcp.jar 118KB
commons-validator-1.3.0.jar 117KB
junit.jar 116KB
commons-beanutils-1.6.jar 116KB
spring-portlet.jar 115KB
spring-support.jar 115KB
hibernate-entitymanager.jar 114KB
aspectjrt.jar 114KB
oscache-2.1.jar 112KB
commons-el-1.0.jar 110KB
spring-remoting.jar 109KB
spring-hibernate3.jar 105KB
jamon-2.4.jar 105KB
velocity-tools-view-1.3.jar 105KB
共 194 条
- 1
- 2
资源评论
- veryhappying2012-08-07代码是蛮好的,但是不完整。。
- shi_ys2013-06-06还不错啊,可以参考一下下的.
- luchuan200002012-05-08没有数据库信息,编译很蛋疼。希望楼主放出数据库信息
bigzoom
- 粉丝: 26
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功