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?