This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have an application, that is set up somewhat like a model view controller pattern.
A servlet is responsible for all the business logic, and a jsp is used to display theinformation to the user. (only rendering information is scripted inside the jsp)
The JSP is displayed within a frame, provided by another application. I cannot modify this application.
The JSP uses DIV's to force the output to fit within the frame and have scroll bars.
I need to be able to print the contents of the JSP page. Using the Windo.print() method from java script just gives me the portion of the frame that is visible. I need to print the entire jsp page, sans scroll bars, and not print anything my JSP is not responsible for.
In one situation, I know prior to displying the JSP that a print has been requested, in another, I don't. If the first situation is easiest to deal with, then I can probably get by with that for starters.
Thanks in advance.