catalogmanageaction.java
来自「一个完整的网络订餐系统」· Java 代码 · 共 42 行
JAVA
42 行
package com.catalog.web.action;
import com.common.*;
import com.common.struts.*;
import com.common.struts.DynamicForm;
import com.catalog.rule.CatalogRule;
import org.apache.struts.action.ActionForward;
import com.catalog.web.page.CatalogManagerPage;
public class CatalogManageAction extends AbstractAction{
public CatalogManageAction() {
}
public ActionForward execute(ActionContext actionContext) throws java.lang.Exception {
String startRecNumStr = actionContext.getParameter("start_rec_num");
if (startRecNumStr == null || "".equals(startRecNumStr))
startRecNumStr = "1";
int startRecNum = Integer.parseInt(startRecNumStr);
int recNumOfPage = Globals.REC_NUM_OF_PAGE;
String orderStr = actionContext.getParameter("orderstr");
String catalogID = actionContext.getParameter("catalogID");
String catalogname = actionContext.getParameter("catalogname");
String pararentID = "0";
CatalogRule rule = new CatalogRule();
rule.setStartRecNum(startRecNum);
rule.setRecNumOfPage(recNumOfPage);
rule.setOrderStr(orderStr);
rule.setCatalogID(catalogID);
rule.setCatalogname(catalogname);
rule.setPararentID(pararentID);
DynamicForm dynaForm = (DynamicForm)actionContext.getForm();
dynaForm.put("catalogSearchRule", rule);
System.out.println("---End: CatalogManageAction::execute(actionContext)---");
return CatalogManagerPage.show(actionContext);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?