querylist.java~22~

来自「一个专门用来快速开发网站的框架」· JAVA~22~ 代码 · 共 72 行

JAVA~22~
72
字号
package com.ksgl.body.index;

import java.util.*;

import com.core.web.Action;
import com.opensymphony.xwork.*;

/**
 * <p>Title: literature item </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author hj
 * @version 1.0
 */
public class QueryList extends Action{
  public QueryList() {
  }

  private List list1;
  private List list2;
  private String mkid;



  public String execute() throws Exception {
    BO bo = new BO();
    list1=bo.queryList(paging, condition,this.GetMkid("mkid"));
     list2=bo.queryListSearch(paging,condition);
     System.out.println(list2.size());

    this.setMkid(this.GetMkid("mkid"));
    return SUCCESS;
  }



  public String GetMkid(String obj)
  {
    String mkid[] = (String[]) ActionContext.getContext().getParameters().get(obj);
    return mkid[0];
  }

  public List getList1() {
    return list1;
  }

  public String getMkid() {
    return mkid;
  }

  public List getList2() {
    return list2;
  }

  public void setList1(List list1) {
    this.list1 = list1;
  }

  public void setMkid(String mkid) {
    this.mkid = mkid;
  }

  public void setList2(List list2) {
    this.list2 = list2;
  }
}

⌨️ 快捷键说明

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