⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 informationmanagepage.java

📁 一个完整的网络订餐系统
💻 JAVA
字号:
package com.information.web.page;


import com.common.*;
import com.common.struts.*;
import com.information.form.InformationSearchResult;
import com.information.form.InformationFB;
import com.information.rule.InformationRule;
import com.information.dao.InformationDao;
import org.apache.struts.action.ActionForward;

public class InformationManagePage {
  public InformationManagePage() {
  }


    public static ActionForward show(ActionContext actionContext)  throws Exception
    {
      DynamicForm dynaForm = (DynamicForm) actionContext.getForm();
      InformationRule rule = (InformationRule) dynaForm.get("informationSearchRule");

      InformationDao dao = new InformationDao();

      InformationSearchResult result = null;

      if (rule == null) {
        result = null;
      }
      else {
        result = dao.getnformationSearch(rule);
      }

    InformationFB bfb = new InformationFB();
    int pageRecNum = Globals.REC_NUM_OF_PAGE;
    int startRecNum = 1;
    if (rule == null)
            startRecNum = 1;
    else
            startRecNum = rule.getStartRecNum();

    bfb.setStartRecNum(startRecNum);
    bfb.setPageRecNum(pageRecNum);
    bfb.setResult(result);
    bfb.setRule(rule);

   actionContext.getRequest().setAttribute(Globals.REQUEST_INFORMATIONSEARCHCON,bfb);
   return actionContext.getMapping().findForward("informationManage");
 }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -