Hello Team,
 
I would like to know how to use <display.*> tag library in  a JSP Page.
Basically i'am getting the datas from the database and have the values in an arraylist and when i want to show the values from the arraylist, i iterate through the same in a for loop and display accordingly.
Can i use the same thing with the display tag library ?
 
Here is my code
 
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="1" class="green-bg">
                    <tr>
                      <td > <div align="center">
                          <input type="checkbox" name="selectAllCb" value="checkbox" >
                        </div></td>
                      <td class="menu-txt"><strong>User Id <img src="" alt="Sort bu user id" width="13" height="10"></strong></td>
                      <td class="menu-txt"><strong>Last Name <img src="" alt="Sort by last name" width="13" height="10"></strong></td>
                      <td class="menu-txt"><strong>First Name <img src="" alt="Sort by first name" width="13" height="10"></strong></td>
                      <td class="menu-txt"><strong>Middle Name <img src="" alt="Sort by middle name" width="13" height="10"></strong></td>
                      <td class="menu-txt"><strong>Role <img src="" alt="Sort by role" width="13" height="10"></strong></td>
                    </tr>
   <%    String userId = ""; 
       if(arrLstDel.size()!=0)
             {
                       for(int i=0;i<arrLstDel.size();i++)
                        {
                         hmDel = (HashMap)arrLstDel.get(i);
       userId = (String)hmDel.get("USERID");
             %>
    <pg:item>
                    <tr>
                      <td align="center" class="white-bckgrd">
       <html:checkbox property="userid" value="<%=userId%>"/>
       </td>
                      <td class="white-bckgrd"><span class="menu-txt"><%=hmDel.get("USERID")%></span></td>
                      <td class="white-bckgrd"><span class="menu-txt"><%=hmDel.get("LASTNAME")%></span></td>
                      <td class="white-bckgrd"><span class="menu-txt"><%=hmDel.get("FIRSTNAME")%></span></td>
                      <td class="white-bckgrd"><span class="menu-txt"><%=hmDel.get("MIDDLENAME")%></span></td>
                      <td class="white-bckgrd"><span class="menu-txt"><%=hmDel.get("USERROLE")%></span></td>
                    </tr>
   </pg:item>
   <%   }
   }else{
   %>
   <tr>
             <td height="170" colspan="6" class="white-bckgrd"><span class="menu-txt"> <div align="center">No Records
                          Found</div></span></td>
   </tr>  
   <%}%>
</table>
 
 
with the above code i want to implement the display tag library , how can i use the same ?
 
Regards
 
 
Sheshadri A.S
Software Engineer,
#7,18th main Road,
7th Block,Koramangala
Bangalore-560 095
WebSite: http://www.bsil.com
E-Mail :[EMAIL PROTECTED]
Ph
91-080-51104560 Extn: 2695 (O)
91-080-3406254 (R)

Reply via email to