src/com/action/shetuanAction.java
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.action;
import java.util.List;
import java.util.Map;
import org.apache.struts2.ServletActionContext;
import com.dao.TShetuanDAO;
import com.model.TShetuan;
import com.opensymphony.xwork2.ActionSupport;
public class shetuanAction extends ActionSupport
{
private Integer id;
private String mingcheng;
private String jieshao;
private String lishijian;
private String fuzeren;
private String loginname;
private String loginpw;
private String del;
private String message;
private String path;
private TShetuanDAO shetuanDAO;
public String shetuanAdd()
{
TShetuan shetuan=new TShetuan();
shetuan.setMingcheng(mingcheng);
shetuan.setJieshao(jieshao);
shetuan.setLishijian(lishijian);
shetuan.setFuzeren(fuzeren);
shetuan.setLoginname(loginname);
shetuan.setLoginpw(loginpw);
shetuan.setDel("no");
shetuanDAO.save(shetuan);
Map request=(Map)ServletActionContext.getContext().get("request");
request.put("msg", "信息添加成功");
return "msg";
}
public String shetuanMana()
{
String sql = "from TShetuan where del='no'";
List shetuanList=shetuanDAO.getHibernateTemplate().find(sql);
Map request=(Map)ServletActionContext.getContext().get("request");
request.put("shetuanList", shetuanList);
return ActionSupport.SUCCESS;
}
后面还有 143 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
