//System.err.println("\n total reocord :" + page_vo.getTotalRecord());
/*/
String temp = (String)org.apache.struts.taglib.TagUtils.getInstance().lookup(pageContext, name, "status", null);
int iTotalPage = 0;
int iRequestPage = 0;
int iCurrentPage = 0;
int iTotalRecord = 0;
System.err.print("\n total Record " + "\n" + iTotalRecord + "\t temp :" + page_vo + "\n");
*/
if (iTotalRecord == 0) {
//ResponseUtils.write(pageContext, "No record was found!");
ResponseUtils.write(pageContext, RequestUtils.message(super.pageContext, "application", null, "air.page.no.record"));
return (Tag.EVAL_BODY_INCLUDE);
}
//
if (isDynamicMethod != null
&& isDynamicMethod.equalsIgnoreCase("true")) {
Object am =
RequestUtils.lookup(pageContext, name, "dynamicMethod", null);
if (am == null)
throw new JspException("You must specify the dyanmicMethod property if you set dynamicMethod true.");
actionMethod = am.toString();
}
String onClickJS_firstPage =
"paging(this,'" + actionMethod + "','" + 1 + "');";
String onClickJS_prePage =
"paging(this,'" + actionMethod + "','" + (iRequestPage - 1) + "');";
String onClickJS_nextPage =
"paging(this,'" + actionMethod + "','" + (iRequestPage + 1) + "');";
String onClickJS_lastPage =
"paging(this,'" + actionMethod + "','" + iTotalPage + "');";
String onClickJS_go = "paging(this,'" + actionMethod + "','0');";
//
if (onClick != null && !"".equals(onClick.trim())) {
onClickJS_prePage = onClickJS_prePage + onClick;
onClickJS_nextPage = onClickJS_nextPage + onClick;
onClickJS_go = onClickJS_go + onClick;
}
/*/
String temp = (String)org.apache.struts.taglib.TagUtils.getInstance().lookup(pageContext, name, "status", null);
int iTotalPage = 0;
int iRequestPage = 0;
int iCurrentPage = 0;
int iTotalRecord = 0;
System.err.print("\n total Record " + "\n" + iTotalRecord + "\t temp :" + page_vo + "\n");
*/
if (iTotalRecord == 0) {
//ResponseUtils.write(pageContext, "No record was found!");
ResponseUtils.write(pageContext, RequestUtils.message(super.pageContext, "application", null, "air.page.no.record"));
return (Tag.EVAL_BODY_INCLUDE);
}
//
if (isDynamicMethod != null
&& isDynamicMethod.equalsIgnoreCase("true")) {
Object am =
RequestUtils.lookup(pageContext, name, "dynamicMethod", null);
if (am == null)
throw new JspException("You must specify the dyanmicMethod property if you set dynamicMethod true.");
actionMethod = am.toString();
}
String onClickJS_firstPage =
"paging(this,'" + actionMethod + "','" + 1 + "');";
String onClickJS_prePage =
"paging(this,'" + actionMethod + "','" + (iRequestPage - 1) + "');";
String onClickJS_nextPage =
"paging(this,'" + actionMethod + "','" + (iRequestPage + 1) + "');";
String onClickJS_lastPage =
"paging(this,'" + actionMethod + "','" + iTotalPage + "');";
String onClickJS_go = "paging(this,'" + actionMethod + "','0');";
//
if (onClick != null && !"".equals(onClick.trim())) {
onClickJS_prePage = onClickJS_prePage + onClick;
onClickJS_nextPage = onClickJS_nextPage + onClick;
onClickJS_go = onClickJS_go + onClick;
}