Printer page breaks from java
I want to give printer page breaks from a java bean code at server.
My client is a jsp which runs in web browser.
Web Development
I want to give printer page breaks from a java bean code at server.
My client is a jsp which runs in web browser.
by jay eckles
JSPs do not run in a web browser; they run on the server. They are basically the same as Java servlets - in fact, when you run a JSP for the first time, it is converted to a servlet, compiled, and run just like any other servlet is.
If you're sending dynamically-generated HTML to a web browser via JSP, and you want to put "page breaks" in the HTML, there is no way to do that. If you're running a Java applet in the web browser, then you can probably use the applet to format a print job on the client, but not on the server. How could you? On the server, you have no idea about the client's printing capabilities - does the client have a printer? what size paper does it have? duplex printing? color or b/w? graphics capabilities?
Jay Eckles
www.jayeckles.com
by poojasingh
by poojasingh
by poojasingh
I would like to modify the question,
Client code is javascript and html with jsp tags.
by poojasingh
Hi,
I wanted to accept the answers and close it looks like by mistake it comes rejected.
Sorry about that.
Thanks.
This discussion is closed to new replies.
Sort by Trending