• 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

calculation

 
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have generating some table for a html page.
I try to print a footer and a header every page.
The html code is generated dynamically by some java code. what's the best way to keep track of the no of row or how much i have printed in order to put a footer there? (counting the number of <tr>? number of <br>?) doesn't sound work.
any suggestion? thanks!
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the best idea could be to have three tables,
1st table - header
2nd table - data from java code
3rd table - footer
now you don't have to worry about tr,td countings on a whole
 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Balaji,
but i have no idea how long is the data for the content, but i know the header and footer, so what i need to do is counting the number of tr in the content? thanks!
- jack
reply
    Bookmark Topic Watch Topic
  • New Topic