queryone.java~7~
来自「一个专门用来快速开发网站的框架」· JAVA~7~ 代码 · 共 59 行
JAVA~7~
59 行
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();
private String image;
public String execute() throws Exception {
BO bo = new BO();
ts=bo.queryList1(this.GetMkid("id"));
this.setImage(ts.getImage());
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 String getImage() {
return image;
}
public void setTs(T_sys_news ts) {
this.ts = ts;
}
public void setImage(String image) {
this.image = image;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?