title: print out of java web application from server side script
body: <p>I want to take print out a the JSP file using serverside java code.</p>
  
  <p>Currently I am using javascript code, but want to get rid of using client side scripting because it won't work if user disables javascript in browser.
  I am using:</p>
  
  <pre><code>window.print();
  </code></pre>
  
  <p>Is there any way to do this? If yes, I also want to set the default printer and not to display print dialog box and take print using the default printer.</p>