src/com/action/ywghAction.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.ywgh;
import com.dao.ywghDao;
@SuppressWarnings("serial")
public class ywghAction extends ActionSupport {

	private ywghDao dao=new ywghDao();
	private	ywgh ywgh=new ywgh();
	private List<ywgh> ywghs=new ArrayList<ywgh>();
	public ywgh getYwgh() {
		return ywgh;
	}

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

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

AI 解读 AI

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

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