• 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

webpage/printable/export implementation

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a customer database, and now i have to:
1. display all the customers in a web page, each customer is a row in a table, the page has a common header and footer as some other jsp pages in the application.
2. display all the customers in a printer-friendly web page, same as above but the table color scheme etc has to be different and also the header and footer are different too.
3. export all customers as a comma seperated text file.
What's the common/best practice of doing all these?
My current implementation has:
i. a controller, customer model, and respective action class
ii. list.jsp, header,jsp, foot.jsp for 1
iii. print.jsp, header1,jsp, foot1.jsp for 2
iv. export.jsp for 3
It's working but any better implementations?
 
reply
    Bookmark Topic Watch Topic
  • New Topic