addstreetaction.java
来自「一个完整的网络订餐系统」· Java 代码 · 共 34 行
JAVA
34 行
package com.league.action;
import org.apache.struts.action.ActionForward;
import com.common.struts.*;
import com.common.*;
import com.league.form.StreetBean;
import com.league.dao.LeagueDao;
public class AddStreetAction extends AbstractAction {
public AddStreetAction() {
}
public ActionForward execute(ActionContext actionContext)
throws java.lang.Exception {
String streetID = actionContext.getParameter("streetID");
String streetcode = actionContext.getParameter("streetcode");
String streetName = actionContext.getParameter("streetName");
String isRoot = actionContext.getParameter("isRoot");
StreetBean model = new StreetBean(streetID, streetcode, streetName, isRoot);
LeagueDao dao = new LeagueDao();
dao.inserStreetToDb(model);
return actionContext.getMapping().findForward("streeAdd");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?