Hey Eric,
thanks for replying!
The thing is I'm  NOT using struts 2 here , just basic jsp,javabeans and
servlets .(Its a sort of demo project!).
As of now my DAO fetches the result according to this query
        if (con != null){
                                        System.out.println("Connected");
                                        String query= "SELECT 
OBJECTID,CODE,DESCRIPTION,ISEDITABLE, ISACTIVE
FROM DOMAIN WHERE DOMAINTYPE_OID='"+dt_oid+"' ORDER BY
DOMAINTYPE_OID,OBJECTID " ;
                                        stmt = con.prepareStatement(query);
                                        rs = stmt.executeQuery();
                                        while (rs.next()){
                                                domainBean= new DomainBean();
                                                
domainBean.setObjid(rs.getInt("OBJECTID"));
                                                
domainBean.setCode(rs.getString("CODE"));
                                                //processing of the bean
                                                
domainBean.setDescription(rs.getString("DESCRIPTION"));
                                                domList.add(domainBean);
                                        }

Set this servlet to the request in my servlet--
request.setAttribute("domList", domList);
And in the jsp i display it as follows.

<display:table name="${domList}"
                                        pagesize="10" id="dl" export="true" 
class="FrmBodyDataGridHeading">
                                        <display:setProperty name='css.tr.even' 
value="FrmBodyDataGridData" />
                                        <display:setProperty name='css.tr.odd'
                                                
value="FrmBodyDataGridAlternateRow" />
                                        <display:column property="code" 
sortable="true" />
                                        <display:column property="description" 
sortable="true" />
                                        <display:column property="statusActive" 
sortable="true"
                                                title="IsActive?" />
                                        <display:column property="statusEdit" 
title="IsEdit?"
                                                sortable="true" />

                                        <display:column title="Edit" 
media="html">
                                                <c:set var="id" 
value="${dl.objid}" />
                                                 
ControlServlet?selected=${dl.objid} Edit  
                                        </display:column>
I really didnt quite understand how external paging would help me ? Could
you kindly elaborate with respect to my situation . 
Many Thanks.

                                        </display:table></TD>.
Any ideas how I should go about modifying my code ?


--
View this message in context: 
http://struts.1045723.n5.nabble.com/Using-Display-Tag-library-tp4574481p4574825.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to