title: Best Way to generate Jasper Report using Java/JSP/Servlet
body: <p>Scenario - User input(Date Range, Report Type) is taken from JSP page &amp; passed to servlet then to java.</p>
  
  <p>I want to ask whether i should - </p>
  
  <ol>
  <li>Use mysql query in java &amp; then put values in jasper using Hashmap?
  or</li>
  <li>Use mysql query in jasper itself &amp; just provide data connection using java?</li>
  </ol>
  
  <p>Main concern is which approach is better in terms of performance, robustness, future changes? </p>