• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic