• 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

Needed logic in JSP using Struts 2.0

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,


http://www.yousendit.com/download/YkxKZGl1YSt3TGcwTVE9PQ

In the above image the first table is the result which i got from database query.
Now i need to display them in JSP using struts 2.0.

So what is the best way for taking the results and how to show them.
Please try to give logic otherwise hints

Note: In JSP the column headers for dates should also populate from Database only
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What to send to the JSP depends on how you're getting the data. If you're using Hibernate, you could just expose the list of objects to the JSP. If you're using raw JDBC you'd create a list of transfer objects from the result set and expose that.
 
Kartik Tal
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi david,

I had already taken the results in the List.
Is it a better way or i have to use HashMap or something.
After taking into list am not able to write logic in jsp to populate this results, as for me it seems to be a bit tricky.But for a simple data am able to do it
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic