How to edit cells in JSP grid

This code demonstrates a usage Label taglib from Coldtags suite in grids. Now cells in your grid could be editable:

Click on the row and you will be able to edit it. And here is the code:
 


<%@ taglib uri="taglib.tld" prefix="lb" %>


<form>
<table width="400" border="1" cellspacing="0">
  <tr>
   <td><lb:label name="r11" edit="true">Ivan</lb:label></td>
   <td><lb:label name="r12" edit="true">Ivanov</lb:label></td>
  </tr>

  <tr>
   <td><lb:label name="r21" edit="true">Joe</lb:label></td>
   <td><lb:label name="r22" edit="true">Doe</lb:label></td>
  </tr>

</table>
</form>

 © Coldbeans   Comments?

See also Other tips from Coldbeans.