package com.jiang.action;
import com.jiang.DB.GetData;
import com.opensymphony.xwork2.ActionSupport;
public class GetPageData extends ActionSupport {
private String p;//��ǰҳ
private String orderby;//�������
private String data;
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
public String getP() {
return p;
}
public void setP(String p) {
this.p = p;
}
public String getOrderby() {
return orderby;
}
public void setOrderby(String orderby) {
this.orderby = orderby;
}
public String execute()throws Exception{
if("".equals(orderby)){
orderby="order by id_t";
}
if("".equals(p)){
p=String.valueOf(1);
}
if(Integer.parseInt(p)==0){
p=String.valueOf(1);
}
data=GetData.getJson("pagetest", "*", "","order by id_t", Integer.parseInt(p), 10);
// System.out.println(data);
return SUCCESS;
}
}
最近下载更多
余 LV1
2021年6月26日
seagullliwei LV1
2021年2月18日
lclinlclin LV14
2021年1月25日
129448 LV1
2020年5月25日
adminxu LV13
2020年5月3日
18035189975 LV1
2020年3月18日
zhourunfav LV1
2019年12月12日
ss1522886278 LV2
2019年12月11日
guysma LV1
2019年11月15日
messiaaaaa LV1
2019年10月18日

最近浏览
