-
大小: 4.27MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-09-19
- 语言: 其他
- 标签:
资源简介
struts2(包括增删改查的实现,及登录实现。jdbc连接。适合struts2初学者)里面的文件都有,数据库文件也有。随时可以联系我QQ:51666293
代码片段和文件信息
package org.xx.action;
import java.util.List;
import org.xx.model.People;
import org.xx.service.HandleService;
import com.opensymphony.xwork2.ActionSupport;
public class HandleAction extends ActionSupport {
public List lists;
private int id;
private People people;
private HandleService handleservice = new HandleService();
public String add() {
int a=handleservice.add(people);
if(a==1){
return SUCCESS;
}
return INPUT;
}
public String check() {
lists=handleservice.check();
return SUCCESS;
}
public String findbyid(){
System.out.println(“ddfdfd“);
this.people=handleservice.findbyId(id);
return SUCCESS;
}
public String deletebyid(){
handleservice.deletebydi(id);
return SUCCESS;
}
public String update() {
System.out.println(people.getAddress());
System.out.println(people.getId());
System.out.println(people.getPassword());
handleservice.update(people);
return SUCCESS;
}
public String updateinput() {
this.people = handleservice.findbyId(id);
return INPUT;
}
public People getPeople() {
return people;
}
public void setPeople(People people) {
this.people = people;
}
public HandleService getHandleservice() {
return handleservice;
}
public void setHandleservice(HandleService handleservice) {
this.handleservice = handleservice;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public List getLists() {
return lists;
}
public void setLists(List lists) {
this.lists = lists;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1148 2010-02-28 15:04 StrutsTest\.classpath
文件 303 2010-02-28 15:04 StrutsTest\.myme
文件 1228 2010-02-28 15:04 StrutsTest\.project
文件 1074 2010-02-28 15:05 StrutsTest\people.sql
文件 1631 2010-02-28 15:04 StrutsTest\src\org\xx\action\HandleAction.java
文件 1464 2010-02-28 15:04 StrutsTest\src\org\xx\action\LoginAction.java
文件 812 2010-02-28 15:04 StrutsTest\src\org\xx\model\People.java
文件 468 2010-02-28 15:04 StrutsTest\src\org\xx\model\users.java
文件 4529 2010-02-28 15:04 StrutsTest\src\org\xx\service\HandleService.java
文件 414 2010-02-28 15:04 StrutsTest\src\org\xx\service\pp.java
文件 1349 2010-02-28 15:04 StrutsTest\src\org\xx\util\DB.java
文件 607 2010-02-28 15:04 StrutsTest\src\org\xx\util\test.java
文件 684 2010-02-28 15:04 StrutsTest\src\struts.xm
文件 896 2010-02-28 15:06 StrutsTest\users.sql
文件 827 2010-02-28 15:04 StrutsTest\WebRoot\Handle_add.jsp
文件 1074 2010-02-28 15:04 StrutsTest\WebRoot\Handle_addinput.jsp
文件 1244 2010-02-28 15:04 StrutsTest\WebRoot\Handle_check.jsp
文件 897 2010-02-28 15:04 StrutsTest\WebRoot\Handle_deletebyid.jsp
文件 1396 2010-02-28 15:04 StrutsTest\WebRoot\Handle_findbyid.jsp
文件 836 2010-02-28 15:04 StrutsTest\WebRoot\Handle_update.jsp
文件 951 2010-02-28 15:04 StrutsTest\WebRoot\Login_login.jsp
文件 942 2010-02-28 15:04 StrutsTest\WebRoot\Login_logininput.jsp
文件 39 2010-02-28 15:04 StrutsTest\WebRoot\me
文件 2613 2010-02-28 15:04 StrutsTest\WebRoot\WEB-INF\classes\org\xx\action\HandleAction.class
文件 2656 2010-02-28 15:04 StrutsTest\WebRoot\WEB-INF\classes\org\xx\action\LoginAction.class
文件 1345 2010-02-28 15:04 StrutsTest\WebRoot\WEB-INF\classes\org\xx\model\People.class
文件 903 2010-02-28 15:04 StrutsTest\WebRoot\WEB-INF\classes\org\xx\model\users.class
文件 4978 2010-02-28 15:04 StrutsTest\WebRoot\WEB-INF\classes\org\xx\service\HandleService.class
文件 1158 2010-02-28 15:04 StrutsTest\WebRoot\WEB-INF\classes\org\xx\service\pp.class
文件 1915 2010-02-28 15:04 StrutsTest\WebRoot\WEB-INF\classes\org\xx\util\DB.class
............此处省略36个文件信息
- 上一篇:高等数学(第五版)课后习题答案完整版
- 下一篇:SIWAVE仿真教程
评论
共有 条评论