src/com/action/tzxmAction.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.tzxm;
import com.dao.tzxmDao;
/***
投资项目 处理action类
*/
@SuppressWarnings("serial")
public class tzxmAction extends ActionSupport {

	private tzxmDao dao=new tzxmDao();//初始化 tzxmdao方法
	private	tzxm tzxm=new tzxm();//初始化 tzxmbean对象
	private List<tzxm> tzxms=new ArrayList<tzxm>();// 初始化 tzxm list对象
	public tzxm getTzxm() {
		return tzxm;
	}

	public void setTzxm(tzxm tzxm) {
		this.tzxm = tzxm;
	}
	public List<tzxm> getTzxms() {
		return tzxms;
	}
	
	public String execute()
	{
	return "";
	}
	public String addPage(){//添加 tzxm 方法 前台
	return "tzxmaddPage";
	}
	public String add()
	{///添加 tzxm 方法 后台处理
		try{
		dao.insert(tzxm);
		}catch(Exception e){
			System.out.println(e.toString());
			
		}
		
			ServletActionContext.getRequest().setAttribute("msg", "<script>alert('添加成功');</script>");
		
	
		return addPage();
	}
	public String list()
	{//添加 tzxm 查询方法
	try{
	tzxms=dao.findlist("");
	}catch(Exception e){
			System.out.println(e.toString());
			
		}
		return "tzxmlist";
	}
	
	public String del()
后面还有 43 行代码,购买后查看完整代码

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

AI 解读 AI

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

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