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
Win a copy of
Spring in Action
this week in the
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.
PrintService 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
Apache2.0 & Tomcat
Basic of a web service client
issue with Tomcat 3.2.4
Calling Print services in Servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014