src/com/action/hwspAction.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.hwsp;
import com.dao.hwspDao;
@SuppressWarnings("serial")
public class hwspAction extends ActionSupport {
private hwspDao dao=new hwspDao();
private hwsp hwsp=new hwsp();
private List<hwsp> hwsps=new ArrayList<hwsp>();
public hwsp getHwsp() {
return hwsp;
}
public void setHwsp(hwsp hwsp) {
this.hwsp = hwsp;
}
public List<hwsp> getHwsps() {
return hwsps;
}
public String execute()
{
return "";
}
public String addPage(){
return "hwspaddPage";
}
public String add()
{
try{
dao.insert(hwsp);
}catch(Exception e){
System.out.println(e.toString());
}
ServletActionContext.getRequest().setAttribute("msg", "<script>alert('添加成功');</script>");
return addPage();
}
public String list()
{
try{
hwsps=dao.findlist("");
}catch(Exception e){
System.out.println(e.toString());
}
return "hwsplist";
}
public String del()
{
String keyid=ServletActionContext.getRequest().getParameter("keyid").toString();
try{
后面还有 41 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。