title: Compile and interpret JSP with Java only
body: <p>I would like to compile and interpret JSP in Java, out of Tomcat or any other servlet container. I think I may use the Jasper libraries coming with Tomcat, but I can't find any example of how to do it on the Web. </p>
  
  <p>The minimum I need is a function that returns an String (HTML resulting text) from a compiled JSP and a HttpServletRequest, or something similar.</p>
  
  <p>Thanks.</p>