How to get data datagrid ?

How to get data datagrid ?

How to get data datagrid in jsp from arrayList in java?

Code in java

CategoryDao dao =  new CategoryDao();
ArrayList<Categories> lstCategory = new ArrayList<Categories>();
lstCategory = dao.getListCategories();
request.setAttribute ("lstCategory", lstCategory);

<table border="0"  cellpadding="5" cellspacing="1">
 <tr >
        <td bgcolor="#888888" width="120" align="center" class="typeA"><font color="#FFFFFF">Update/Delete</font></td>
        <td bgcolor="#888888" width="110" align="center" class="typeAL"><font color="#FFFFFF">id_Category</font></td>
        <td bgcolor="#888888" width="80" align="center" ><font color="#FFFFFF">Name Category</font></td>                        
 <tr bgcolor="#F0F6DC" align="left">
    <td class="typeA"><center><a href="Category.jsp"><input type="submit" value="Update"></a> <input type="button" value="Delete" onclick="javascript:window.location='kaiin_r_kakunin.html';"></center></td>
 <td value="${categoy.CategoryID}" class="typeAL">001</td>
    <td value="${categoy.Name} class="typeAL">Computer</td>

View Answers

June 18, 2011 at 11:36 AM

Please go through the following link:

June 18, 2011 at 1:37 PM

thanks. Ok.


Related Tutorials/Questions & Answers: