JSP: How to create number of rows in the table at run time -


how create table in jsp using data comes @ run time? trying create 1 table in jsp in want display data db table row.

i want take 4 columns of db table , want display values rows jsp table , @ end of jsp table want add 1 column contain button if user clicks on whole data of particular record should displayed on other jsp page.is there simple way how can create dynamic table.

there 2 options

  1. you can use scriptlets "<% javacode %>" html combination - not reccommend

  2. use jstl - keep jsp code clean can pass list of objects hibernate fetch jstl c:foreach tag. see here example


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -