src/com/action/hetongAction.java

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.action;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.bean.hetong;
import com.dao.hetongDao;
@SuppressWarnings("serial")
public class hetongAction extends ActionSupport {

	private hetongDao dao=new hetongDao();
	private	hetong hetong=new hetong();
	private List<hetong> hetongs=new ArrayList<hetong>();
	public hetong getHetong() {
		return hetong;
	}

	public void setHetong(hetong hetong) {
		this.hetong = hetong;
	}
	public List<hetong> getHetongs() {
		return hetongs;
	}
	
	public String execute()
	{
	return "";
	}
	public String addPage(){
	return "hetongaddPage";
	}
	public String add()
	{
		try{
		dao.insert(hetong);
		}catch(Exception e){
			System.out.println(e.toString());
			
		}
		
			ServletActionContext.getRequest().setAttribute("msg", "<script>alert('添加成功');</script>");
		
	
		return addPage();
	}
	public String list()
	{
	try{
	hetongs=dao.findlist("");
	}catch(Exception e){
			System.out.println(e.toString());
			
		}
		return "hetonglist";
	}
	
	public String del()
	{
		String keyid=ServletActionContext.getRequest().getParameter("keyid").toString();
		try{
后面还有 41 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。