• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamic Population of HTML table content

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, how to populate dynamic table content in HTML. Anyone please help me.



Regards,
Sijesh
 
Saloon Keeper
Posts: 15485
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's loads and loads and loads of ways of doing that.

I find it's easiest though if you use an (either client-side or server-side) framework that has a template engine. In Apache Struts 2, the default template language is FreeMarker, but it also supports Velocity and JSP. You can also install plugins that let you use other template engines, such as Thymeleaf.

Have you ever worked with a template language like FreeMarker, Velocity, JSP or Thymeleaf?
 
Sijesh Alayaril
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes , I have worked with JSP. But quite new to HTML.
 
Stephan van Hulst
Saloon Keeper
Posts: 15485
363
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What have you done with JSP before?

Anyway, if you know what a table looks like in HTML, and you know how to loop through your data in JSP, then you can just print a <tr> in your JSP loop for every row in your data, and then you can loop through the columns of your row data, and print a <td> for each cell of the row.
 
reply
    Bookmark Topic Watch Topic
  • New Topic