67,515
社区成员
发帖
与我相关
我的任务
分享
public String getMessages() throws Exception {
try{
int totleRecordCount=messageService.getTotle();
Pager pager = new Pager(currentPage,totleRecordCount,Constant.FRONT_MESSAGE_SIZE);
List messages = messageService.getMessages(currentPage,Constant.FRONT_MESSAGE_SIZE);
myRequest.put("messages", messages);
myR.put("pagerbar", pager.getPagebar(Constant.FRONT_MESSAGE_ACTION));
return SUCCESS;
}catch(Exception e){
e.printStackTrace();
return SUCCESS;
}
}
Map request=(Map)ActionContext.getContext().get("request");
request.put("messages", messages);
request.put("pagerbar", pager.getPagebar(Constant.FRONT_MESSAGE_ACTION));