📄 loadmap.java
字号:
package com.league.action;
import org.apache.struts.action.ActionForward;
import com.common.struts.*;
import com.league.dao.LeagueDao;
import java.util.*;
import com.store.form.Store;
public class LoadMap extends AbstractAction
{
public LoadMap()
{
}
public ActionForward execute(ActionContext actionContext) throws java.lang.Exception
{
String areaID = actionContext.getParameter("areaID");
LeagueDao dao = new LeagueDao();
List newStoreList = dao.getNewStoreList(areaID);
actionContext.getRequest().setAttribute("newStoreList", newStoreList);
List bestStoreList = dao.getBestStoreList(areaID);
actionContext.getRequest().setAttribute("bestStoreList", bestStoreList);
switch (Integer.parseInt(areaID))
{
case 86571571:
return actionContext.getMapping().findForward("mapForHZ");
case 86021021:
return actionContext.getMapping().findForward("mapForSH");
case 86028028:
return actionContext.getMapping().findForward("mapForCD");
}
return actionContext.getMapping().findForward("mapForHZ");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -