I have a web page with a hyper link on it labeled 'PRINT'
The requirment is that the print link needs to send a document to a printer via CUPS on linux.
The document is stored on disk (within the directory structure of the web server).
I am using Jonas web server (which uses
Tomcat for its
servlet container) installed on Linux.
Any ideas on how I can do this? Is there a printing API for web applications that I need to use?
The steps that i need to take are:
1.user clicks on the PRINT link
2.Servlet determines the session id of the user
3.Servlet grabs the document associated with the session Id from disk
4.Servlet sends the document to a printer via CUPS