I want to print a page that is generated. The page is constructed dynamically(using JSP) i.e it contains text as well as data retrived from the database. The retrived data is set into text boxes along with the text.
I can not figure out a method in java to use printer.
What are the arguments that the method will require?
Ping & DNS - updated with new look and Ping home screen widget
If you want the users of your web application to print what you're sending them in a JSP, learning how to use Java APIs to print isn't going to help. In web applications, The Java application runs on the server. The clients of your application are using a browser to access it, and they normally wouldn't have any access to printers attached to the server.
Unless people have access to the printer that is set up with the serer, you can not use Java. There is no real way to set up the printer with JavaSceipt. Ifyou are working with IE, you can look into using ActiveX controls.