src/com/action/indexAction.java
(完整代码) 974Bpackage com.action;
import java.util.List;
import java.util.Map;
import org.apache.struts2.ServletActionContext;
import com.dao.TCheciDAO;
import com.dao.TGonggaoDAO;
import com.opensymphony.xwork2.ActionSupport;
public class indexAction extends ActionSupport
{
private TGonggaoDAO gonggaoDAO;
private TCheciDAO checiDAO;
public String index()
{
Map request=(Map)ServletActionContext.getContext().get("request");
String sql="from TCheci where del='no'";
List checiList=checiDAO.getHibernateTemplate().find(sql);
request.put("checiList", checiList);
return ActionSupport.SUCCESS;
}
public TGonggaoDAO getGonggaoDAO()
{
return gonggaoDAO;
}
public void setGonggaoDAO(TGonggaoDAO gonggaoDAO)
{
this.gonggaoDAO = gonggaoDAO;
}
public TCheciDAO getCheciDAO()
{
return checiDAO;
}
public void setCheciDAO(TCheciDAO checiDAO)
{
this.checiDAO = checiDAO;
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
