📄 queryoneaction.java
字号:
package com.ksgl.body.qqkj;
/**
* <p>Title: literature item </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2007</p>
* <p>Company: </p>
* @author hj
* @version 1.0
*/
import java.util.*;
import org.apache.commons.logging.*;
import com.core.web.*;
import com.ksgl.map.*;
import javax.servlet.http.HttpServletRequest;
import com.opensymphony.webwork.ServletActionContext;
import com.opensymphony.xwork.ActionContext;
import javax.servlet.http.HttpServletResponse;
/**
* 实现单条业务数据的查询
*/
public class QueryOneAction extends Action {
private static Log log = LogFactory.getLog(QueryOneAction.class);
private List list1,list2;
String id,so,mkid,sd,images,stid,coun;
public String execute() throws Exception {
BO bo = new BO();
// so 国家 stid 是mkid id 是数据id
if (id != null && !this.getSo().equals("")) {
//获得国家名称
String s=new String(this.getSo().getBytes("UTF-8"), "UTF-8");
coun=s;
mkid=this.getStid();
id=this.getId();
list1 = bo.queryOneList(id);
list2 = bo.queryOnList(coun,mkid,id);
T_sys_news objmap = new T_sys_news();
objmap = bo.queryList1(id);
this.setImages(objmap.getImage());
ActionContext ctx = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest)ctx.get(ServletActionContext.HTTP_REQUEST);
HttpServletResponse response= (HttpServletResponse)ctx.get(ServletActionContext.HTTP_RESPONSE);
request.setAttribute("con",s);
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
}
return SUCCESS;
}
public String getId() {
return id;
}
public String getSo()
{
return so;
}
public List getList1() {
return list1;
}
public List getList2() {
return list2;
}
public String getSd() {
return sd;
}
public String getImages() {
return images;
}
public String getStid() {
return stid;
}
public void setId(String id) {
this.id = id;
}
public void setSo(String so)
{
this.so = so;
}
public void setList1(List list1) {
this.list1 = list1;
}
public void setList2(List list2) {
this.list2 = list2;
}
public void setSd(String sd) {
this.sd = sd;
}
public void setImages(String images) {
this.images = images;
}
public void setStid(String stid) {
this.stid = stid;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -