Skip to content

Instantly share code, notes, and snippets.

@ethanfu
Created December 19, 2012 02:33
Show Gist options
  • Save ethanfu/4333874 to your computer and use it in GitHub Desktop.
Save ethanfu/4333874 to your computer and use it in GitHub Desktop.
String queryCondition = null;
if (request.getAttribute("queryCondition") != null) {
queryCondition = request.getAttribute("queryCondition").toString();
} else {
queryCondition = request.getParameter("queryCondition");
}
PageVo pageVo = Helper.findPageVo(request);
if (pageVo != null) {
pageVo = Helper.updatePageVo(pageVo, request);
} else {
int recordCount = bs.getI18NRecordCount(queryCondition);
pageVo = Helper.createPageVo(request, recordCount);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment