Forums Register Login
Need help in servlets
Hi all,
I'm now working on a finanical project. I have a print button which upon clicked will generate statement of accounts for all the customers. The question now is I need to have a separate page generated to each of the customers. So how do I do that?
Insert a pagebreak in html? Is that possible? If so, how do you do that? And how do I send this print job to the printer upon clicking on that print button?
I really don't understand the complete question from the data you gave but...
One of the features of JSPs is the DYNAMIC GENERATION OF CONTENT. That means that you would have only one JSP for 'a' customer. Then you could set up an info bean with the data for a particular customer and forward the request to that JSP.
The JSP may have code like

Customer Name: <%= infoBean.getCustomerName() %> <BR>
Customer Number: <%= infoBean.getCustomerNumber() %> <BR>
Address: <%= infoBean.getCustomerAddress1() %> <BR>

As I said, I am not sure of what you need. If you break it into tasks, it may be easier to separate questions...
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database

This thread has been viewed 596 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 22, 2019 19:58:33.