To print at clientside(using printer and not on console) u have to use window.print() method of javascript. You can not invoke client's printer using servlet. [ January 21, 2003: Message edited by: Prakash Dwivedi ]

Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"

Well, of course "servlets" cannot do anything on the client, since they do not run on the client. But, of course servlets can output (or refer to) normal Web content like HTML, JavaScript, or VBScript. The fact that JavaScript is generated by a servlet (or referred to by an HTML page that is generated by a servlet) does not change in the slightest what it can do on the client. The client does not know the difference. Sure, a servlet could print on the server. But I can't see what good that would do anyone. Presumably the client has no access to the server machine. Cheers- - Marty

To print on the client side, the user needs to use the mouse click. Servlet can generate all kinds of printable files (pdf, html, Word, image etc.) and send to the user. Maybe it is possible to have servlet send output directly to a printer instead of a browser. Just a thought.

BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design