queryone.java~6~

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

JAVA~6~
49
字号
package com.ksgl.body.index;

import com.core.web.Action;
import com.ksgl.map.*;
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 QueryOne extends Action{
  public QueryOne() {
  }
  T_sys_news ts=new T_sys_news();
  public String execute() throws Exception {
    BO bo = new BO();

    System.out.println(this.GetMkid("id")+"        ------------");

    ts=bo.queryList1(this.GetMkid("id"));

    return SUCCESS;
  }


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

  public T_sys_news getTs() {
    return ts;
  }

  public void setTs(T_sys_news ts) {
    this.ts = ts;
  }

}

⌨️ 快捷键说明

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