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.
The minimum I need is a function that returns an String (HTML resulting text) from a compiled JSP and a HttpServletRequest, or something similar.
Thanks.