Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dynamic db table content in jsp  RSS feed

 
seetarama raju
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody tell me the best way to generate a dynamic html table
to populate database select query result on the fly in a jsp page.
Iam working in a oracle jdeveloper environment

Thans in advance
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I use JSP EL with a custom tag. Like this:

<table cellpadding="0" cellspacing="0">
<app:listings id="listing">
<tr>
<td>${listing.id}</td>
<td>${listing.name}</td>
</tr>
</app:listings>
</table>

This way you can access your model classes from the ListingsTag class and not mess up your JSP with code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!