tags:

views:

124

answers:

2
+1  Q: 

Datagrid in JSP

Hi,

I need to create a Datagrid with a radiobutton column in JSP. The grid is to be binded dynamically to a result set and be populated accordingly. This result set is obtained as a result of search in the database. Please do help with a sample source code, or a useful link for the same.

Thanks in advance, Geetha

A: 

Here are some links

http://www.roseindia.net/jsp/data-grid.shtml

or use this library

http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/

ktaylorjohn
http://jakarta.apache.org/taglibs/datagrid-1.0 this is the uri referred..and the link is broken. Will it still work?
Geethapriya.VC
havent tried myself. the sandbox is still working though.
ktaylorjohn
okie. But the link has only the documentation. I cant figure out the location for the JAR file and TLD file , to download it. Where do i get them from?
Geethapriya.VC
Roseindia is a terrible source which should be blacklisted. It only introduces bad practices and almost all code examples have serious bugs. The Jakarta taglibs is vintage and not maintained since almost a decade.
BalusC
+1  A: 

DisplayTag is a popular taglib for those purposes in "plain vanilla JSP".


Alternatively, you can look for a component based MVC framework which usually ships with datagrid components. For example JSF with the standard h:dataTable or a JSF component library with a more enriched table, such as RichFaces with rich:dataTable, IceFaces with ice:dataTable and PrimeFaces with p:dataTable

BalusC