1111ddddd

import com.***.it.framework.vo.common.Pagination;
public final class PaginationLinkAjaxTag extends LinkTag{

 private String zone;
 private String method ;
 private String firstValue;
 private String nextValue;
 private String previoValue;
 private String lastValue;
 private String gotoPageStart;
 private String gotoPageEnd;
   
 protected static final Locale defaultLocale = Locale.getDefault();
 protected String localeKey;
 protected String bundle;
 
 public int doStartTag() throws JspException {
  retrieveMessages();
  StringBuffer results = new StringBuffer();
  Pagination pagination = (Pagination) RequestUtils.lookup(super.pageContext, name, property, scope);

  method = getMethod();
  zone=getZone();
  results.append(generateHidden(pagination));
  results.append(generateTable(pagination));
  results.append(generateJS(method));
  ResponseUtils.write(super.pageContext, results.toString());
  text = null;
  return EVAL_BODY_BUFFERED;
 }
 public int doAfterBody() throws JspException {
  if (super.bodyContent != null) {
   String value = super.bodyContent.getString().trim();
   if (value.length() > 0)
    text = value;
  }
  return SKIP_BODY;
 }
 private void retrieveMessages() throws JspException {
   localeKey = super.getLocale();
   bundle = Globals.MESSAGES_KEY;
  String sRootPath = ((HttpServletRequest)pageContext.getRequest()).getContextPath();
      if(sRootPath.endsWith("/"))sRootPath=sRootPath.substring(sRootPath.length()-1);
     firstValue = "<img src='"+sRootPath+"/images/first.gif'"+"/>";

      nextValue = "<img src='"+sRootPath+"/images/next.gif'"+"/>";       
       
      previoValue = "<img src='"+sRootPath+"/images/previous.gif'"+"/>";

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值