File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Need help in servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Need help in servlets" Watch "Need help in servlets" New topic
Author

Need help in servlets

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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?
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
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>

Etc...
As I said, I am not sure of what you need. If you break it into tasks, it may be easier to separate questions...

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need help in servlets