Can I print the dynamic content output to my browser from a JSP page without showing the address URL?

Matt Goodall

You have no control how the browser decides to print a page.

If layout matters that much then I would recommend writing a servlet to populate a PDF file with the data you have on your JSP. The servlet sends the PDF to the browser and the browser loads Adobe Acrobat to view the page.

If you choose to do that take a look at FDF - PDF's form API. It's pretty easy to use, there are Java packages to help with the task and I'm sure FDF will have been mentioned on jguru before.

Note that using PDF does mean that the client needs to have an Acrobat viewer installed.