📄 addstreetaction.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -