title: print page by jsp like normal printing
body: <p>Ok finally i need to ask my question here as i did not find any solution. My question is how can i print a jsp page when i click on print button(on that page)? For example i have a jsp page and i have written something then when i click on print button(like submit button) then that jsp page will be sent to print and when i will click print on that print screen then page will be printed. Any help please?</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;A jsp page&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  //have written something and want to print this by java code
  
  &lt;input type="submit" value="print"/&gt;// click here to print
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>