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>
You need to tell displaytag which scope your data is in. DisplayTag only looks in the request scope by default.
Ed!
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.
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>
You need to tell displaytag which scope your data is in. DisplayTag only looks in the request scope by default.
Ed!
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>