This question already has an answer here:
- Execute JSP directly from Java 4 answers
What is the way to render jsp file to a string? Is it possible without using frameworks like spring/struts/etc?..
This question already has an answer here:
What is the way to render jsp file to a string? Is it possible without using frameworks like spring/struts/etc?..
You may compile JSP Pages with any JSP Rendering engine, for example Apache Jasper, included in Apache Tomcat.
If you want to stream any webpage may it be a JSP or any other web page, you can use the method below.
Use MockRunner. This allows you to run JSPs in test cases, for example.