• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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?
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic