swprogrammer 2009-05-11 13:38
浏览 191
已采纳

page-taglib分页问题

想做个分页,用page-taglib怎么没反应,大家帮忙看下

[size=large][color=red]online waiting...................[/color][/size]

页面:

index="half-full"
maxPageItems="10"
maxIndexPages="5"
isOffset=""
export="pageOffset,currentPageNumber=pageNumber"
scope="request">


pg:item
${databank.employee.empName}

/pg:item

/c:forEach

/pg:pager

action:

public ActionForward queryAll(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {

    int pagIndex = 1;
    int pagNum = 20;

    List<Databank> databankList = this.databankBiz.findDataBankByPage(pagIndex, pagNum);
    System.out.println("-------------"+databankList.size());
    request.setAttribute("databankList", databankList);
    return mapping.findForward("pagination");
}

struts-config.xml:

type="org.springframework.web.struts.DelegatingActionProxy"
name="databankInfo"
scope="request"
parameter="op">

spring:



为什么会没反应呢???????
连调用action都没调用到。。。。。到底怎么回事

  • 写回答

1条回答 默认 最新

报告相同问题?