Is there any counterpart to ASP.NET's DataGrid (or DataView) in the various J2EE web application technologies (specifically Struts)? In other words, what is the de facto method for showing tabular data in a J2EE web application?
A:
The general approach would be to generate the HTML table yourself, and populate within a JSP (e.g. see here, although I would separate the logic/database code into a servlet rather than code directly into the JSP).
If you're using Struts, then Struts Layout may be of interest.
Brian Agnew
2010-05-31 09:36:10