iterate
Hi,
I have a jsp file which contains a table(tr and td's). I want to access a field from a database table, for instance i want to fetch all names from name field which should be displayed inside a table structure. How to iterate this inside a table structure(td).
Thank You
Veena
Don't. Just don't. Let the servlet, or even better: the business tier to the DB accessing. Let it return a List of "row" beans to you that you add to the session and then iterate over in the JSP.
People who access DBs from JSPs should be force-fed the GoF book.
Edit: as for the iteration itself: iterate inside the <table> tag instead, writing a new <td> for every property of the bean. I think that's what you want, correct?