Printing from jsp

I have a web site consisting of jsp's and servlets running on apache/tomcat. The site will be run on a standalone computer in kiosk mode. So, the webserver and browser will be on the same machine. The customer would like a button that will print the current jsp but we don't want the print dialog to appear (like when using the java script print function).

Anybody know of a way to print to the default printer right from the page and bypassing the print dialog? If it's not possible, what other solutions do I have? Could this be done with an applet? Or some server-side java since it will be on the same machine (...as a last resort)?

Any suggestions appreciated,

JEB

[705 byte] By [JEBsilenus] at [2007-9-26 3:51:23]
# 1

ya, i had to do something similar.if your happy with the default printer, then you can use the java.awt.print package. real easy.. lots of sample codes and stuff at java.sun.com...

you can just tell it to render your page to the printer w/o any dialogs.... ya gotta write the rendering though, but you can drop all your data in as you need.

--jN

araboth at 2007-6-29 12:37:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...