• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Dynamic table generation

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My file parser application is parsing various XML files(but only one a time). The structure of all XML file is something as given below-


After parsing through such XML file I have a list of Hashmaps and a set of strings
In each Hashmap, key is tag name and value is tag data.
Set contains unique tag names (all is done through SAXParser).

Now my problem is that how to display the set elements as column header and only the values of each Hashmap per row in a table using JSP-bean-servlet/...
Any suggestions .



 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post a sample table which corresponds to the data you displayed in the XML ?
 
Siddhesh Khedekar
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Table will be like -

firstName Lastname Age SSN
Fernando Torres 24 23324
William - - - - 33 - - - -
. . . .
. . . .



It should be a proper table ,but I am not able to post it properly in the exact format.
 
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic