File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Printing In Servlet Using Apache Tomcat
Joined: Nov 05, 2004
Apr 18, 2005 03:00:00
I am Using javax.print API to print Documents through
. But while Doing it in Apache
Server. Null Pointer Exception is Thrown.
service = PrintServiceLookup.lookupDefaultPrintService();
In this Code Service is Getting null Value.
If I run same programm using servletrunner . then the document is Printed!
Is their any Configuration to set in Apache ?
Waiting for Replies..!
Joined: Oct 12, 2000
Apr 18, 2005 03:27:00
There we go again, the daily dose of client/server confusion...
If you print from a servlet it will use a printer on the SERVER. If there is no printer (or the server doesn't allow the servlet to use it)...
I agree. Here's the link:
subject: Printing In Servlet Using Apache Tomcat
Calling Print services in Servlets
Apache2.0 & Tomcat
issue with Tomcat 3.2.4
Basic of a web service client
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014