I have a JSP page with some controls and a Print button. What I want it to do is when I click the Print button, the print dialog box would show. I would choose what printer to to send this job to. But when I press the button to start the printing, I don't want to print the "screenshot" of the page. Instead I want to send the contents of controls in a text format.
For example, the JSP page would have a text box with a value of "Hello World". So what I would like is to send just the text "Hello World" to the print queue.
Is this possible? How would I override the data that gets sent to the printer?