📄 search2.java
字号:
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 Search2 extends Action{
private List list2;
private String znidxh;
public Search2() {
}
public String execute() throws Exception {
BO bo = new BO();
String znid[] = (String[]) ActionContext.getContext().getParameters().get("znid1");
String keyword[] =(String[])ActionContext.getContext().getParameters().get("keyword");
this.setZnidxh(znid[0]);
if(!keyword[0].equals("")){
condition.setCondition(" and title like '%"+keyword[0]+"%'");
}
System.out.println(znid[0]+"++++++++++4.16");
list2=bo.queryListSearch(paging,condition,znid[0]);
return SUCCESS;
}
public List getList2() {
return list2;
}
public String getZnidxh() {
return znidxh;
}
public void setList2(List list2) {
this.list2 = list2;
}
public void setZnidxh(String znidxh) {
this.znidxh = znidxh;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -