📄 queryaction.java
字号:
package com.ksgl.body.qqkj;
import java.util.*;
import javax.servlet.http.*;
import org.apache.commons.logging.*;
import com.core.web.*;
import com.core.web.Action;
import com.ksgl.map.*;
import com.opensymphony.webwork.*;
import com.opensymphony.xwork.*;
import java.net.URLDecoder;
/**
* <p>Title: literature item </p>
* <p>Description: 首页</p>
* <p>Copyright: Copyright (c) 2007</p>
* <p>Company: </p>
* @author hj
* @version 1.0
*/
public class QueryAction extends Action{
public QueryAction() {
try {
jbInit();
}
catch (Exception ex) {
ex.printStackTrace();
}
}
private static Log log = LogFactory.getLog(QueryAction.class);
private List list,list1,list2,list3,list4,list5,list6,list7,list8,list9,list10,list11,list12,list13,list14,list15,list16,list17,list18,list19,list20,list21,list22,list23;
private UserInfo user;
private com.ksgl.body.member.GlyCountVO vo;
private String str,stid,st,keyword,coun,cn,couns,images;
T_sys_news objmap=new T_sys_news();
ActionContext ctx = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest)ctx.get(ServletActionContext.HTTP_REQUEST);
HttpServletResponse response= (HttpServletResponse)ctx.get(ServletActionContext.HTTP_RESPONSE);
public String execute() throws Exception {
BO bo = new BO();
Paging p=new Paging();
//获得国家名称
String s1= new String(this.getStr().getBytes("ISO-8859-1"),"UTF-8");
String s=URLDecoder.decode(s1, "utf-8");
if(this.getCn().equals("cn"))
{
stid=this.getCoun();
//省内信息/国内信息
}else if(this.getCn().equals("cl"))
{
stid=this.getCouns();
//省内信息/国内信息
}
list10 = bo.queryList(paging,condition,stid,s);
list11 = bo.queryLists(paging,condition,stid,s);
String im=null;
for (Iterator it = list10.iterator(); it.hasNext(); )
{
T_sys_news obj = (T_sys_news) it.next();
this.setImages(obj.getImage());
im=obj.getImage();
}
request.setAttribute("con",s);
request.setAttribute("im",im);
request.setAttribute("coun",this.getCoun());
request.setCharacterEncoding("gb2312");
// response.setCharacterEncoding("utf-8");
//String fy="qqLisrt.action?str=encodeURIComponent('"+this.getStr()+"')&&couns=13&&cn=cl";
//request.setAttribute("fy",fy);
/*
list12 = bo.queryListindex(condition,"2",0,4);
list13 = bo.queryListindex(condition,"3",0,4);
list14 = bo.queryListindex(condition,"4",0,8);
list22 = bo.queryListindex(condition,"5",0,3);
//member---->数据!
list16 = bo.queryListindex(condition,"17",0,6);
list17 = bo.queryListindex(condition,"18",0,6);
list18 = bo.queryListindex(condition,"1",0,6);
list19 = bo.queryListindex(condition,"2",0,6);
list20 = bo.queryListindex(condition,"16",0,6);
list21 = bo.queryListindex(condition,"13",0,6);
*/
// vo = new com.ksgl.body.member.BO().queryCount();
return SUCCESS;
}
public List getList() {
return list;
}
public UserInfo getUser() {
return user;
}
public void setList(List list) {
this.list = list;
}
public void setUser(UserInfo user) {
this.user = user;
}
public List getList1() {
return list1;
}
public void setList1(List list1) {
this.list1 = list1;
}
public com.ksgl.body.member.GlyCountVO getVo() {
return vo;
}
public void setVo(com.ksgl.body.member.GlyCountVO vo) {
this.vo = vo;
}
public List getList2() {
return list2;
}
public void setList2(List list2) {
this.list2 = list2;
}
public List getList3() {
return list3;
}
public List getList4() {
return list4;
}
public List getList5() {
return list5;
}
public List getList6() {
return list6;
}
public List getList7() {
return list7;
}
public List getList8() {
return list8;
}
public List getList23()
{
return list23;
}
public void setList8(List list8) {
this.list8 = list8;
}
public void setList7(List list7) {
this.list7 = list7;
}
public void setList6(List list6) {
this.list6 = list6;
}
public void setList5(List list5) {
this.list5 = list5;
}
public void setList4(List list4) {
this.list4 = list4;
}
public void setList3(List list3) {
this.list3 = list3;
}
public List getList10() {
return list10;
}
public List getList11() {
return list11;
}
public List getList12() {
return list12;
}
public List getList13() {
return list13;
}
public List getList14() {
return list14;
}
public void setList14(List list14) {
this.list14 = list14;
}
public void setList13(List list13) {
this.list13 = list13;
}
public void setList12(List list12) {
this.list12 = list12;
}
public void setList11(List list11) {
this.list11 = list11;
}
public void setList10(List list10) {
this.list10 = list10;
}
public List getList9() {
return list9;
}
public void setList9(List list9) {
this.list9 = list9;
}
public List getList15() {
return list15;
}
public List getList16() {
return list16;
}
public List getList17() {
return list17;
}
public List getList18() {
return list18;
}
public List getList19() {
return list19;
}
public List getList20() {
return list20;
}
public List getList21() {
return list21;
}
public List getList22() {
return list22;
}
public String getStr() {
return str;
}
public String getSt() {
return st;
}
public String getKeyword() {
return keyword;
}
public String getStid() {
return stid;
}
public String getCoun() {
return coun;
}
public String getCn() {
return cn;
}
public String getCouns() {
return couns;
}
public String getImages() {
return images;
}
public void setList15(List list15) {
this.list15 = list15;
}
public void setList21(List list21) {
this.list21 = list21;
}
public void setList20(List list20) {
this.list20 = list20;
}
public void setList19(List list19) {
this.list19 = list19;
}
public void setList18(List list18) {
this.list18 = list18;
}
public void setList17(List list17) {
this.list17 = list17;
}
public void setList16(List list16) {
this.list16 = list16;
}
public void setList22(List list22) {
this.list22 = list22;
}
public void setList23(List list23)
{
this.list23=list23;
}
public void setStr(String str) {
this.str = str;
}
public void setSt(String st) {
this.st = st;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public void setStid(String stid) {
this.stid = stid;
}
public void setCoun(String coun) {
this.coun = coun;
}
public void setCn(String cn) {
this.cn = cn;
}
public void setCouns(String couns) {
this.couns = couns;
}
public void setImages(String images) {
this.images = images;
}
private void jbInit() throws Exception {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -