Menu

Need urgent help with dynamic pagesize

Help
ivanco
2004-11-26
2012-10-09
  • ivanco

    ivanco - 2004-11-26

    Hello everyone,

    My application need the pagesize parameter value to be dynamic. In other words, the pagesize will change acording to some parameters every time. I tried all the following unsuccessfully:

    pagesize="${pages}"
    pagesize="<c:out value="$pages"}"
    pagesize="<%=request.getAttribute("pages");%>"
    
    where "pages" is a String bean stored in request context.
    

    How do I do this?. Your help will be very much appreciated. Thanks.

    Ivan

     
    • coignet didier

      coignet didier - 2007-06-15

      with struts 2 :
      <s:set name="psize" value="20" scope="request" />

      <display:table name="list" pagesize="${psize}"requestURI="action.action">

      and voila !! it works .

       

Log in to post a comment.