Menu

Display Collection

Help
2008-05-28
2012-10-09
  • norphos teoh

    norphos teoh - 2008-05-28

    hello, i've got a problem displaying the tables using collection. it jus keeps displaying no items found :( any help will be appreciated.

    Collection<Shop> products= smgr.getProducts(); / returns a collection of product beans /

    <display:table name="${products}" pagesize="6" class="dataTable">
    <display:column property="product_name" sortable="true"/>
    </display:table>

     
    • Ed Webb

      Ed Webb - 2008-05-28

      You need to tell displaytag which scope your data is in. DisplayTag only looks in the request scope by default.

      Ed!

       
      • norphos teoh

        norphos teoh - 2008-05-28

        i tried the following and its not working either. please help!. thanks :)

        Collection<Shop> shopList = smgr.displayShop();

        <display:table name="pageScope.shopList" pagesize="2" class="dataTable">
        <display:column property="ratingCount" sortable="true"/>
        </display:table>

         

Log in to post a comment.