How to print jsp generated html page without using browser print option?

Hi,We are using jsp to generate the dynamic output on browser, now we want to print the current page (exactly) to printer without using Browser print page option. Can we do this?Thanks in advance--Sharad
[238 byte] By [sharadag] at [2007-9-26 3:07:14]
# 1
hi u can try to construct a bean which uses the print classes of java and then its as easy as getting properties of that bean (for ex:setPrint()) in ur jsp page !!! i hope this helps.
siv-viv at 2007-6-29 11:10:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

> hi u can try to construct a bean which uses the print

> classes of java and then its as easy as getting

> properties of that bean (for ex:setPrint()) in ur jsp

> page !!! i hope this helps.

This won't work on the browser! All Java code in a JSP page is only executed on the server, so if you try print in this way, the printout will probably go to some printer connected to the server - not very useful for your client on the browser side. The only way that I know of to execute Java code on the browser is with an Applet.

hungyee at 2007-6-29 11:10:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
thanks, but tell me how can I capture the html page to print, Can you provide me some example og this?--Sharad
sharadag at 2007-6-29 11:10:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...