I’m in a Tomcat and have a String with JSP Content. And I try to get the HttpServletResponse means the HTML Output. In normal case you call the JSP and the WebContainer translate it to an Servlet and generates the Output.
But I have no JSP as File, just a String with the Content of an JSP. Is there a Class or Factory where I can put the Stream and get it processed?
thanks in anticipation
No. there is not readily available solution for this.
But, you can try out this:
/tmp/jspstring.jsp. UsegetServletContext().getRealPath("/tmp/jspstring.jsp")to get the path of the new jsp.RequestDispatcherinclude the newly created JSP, such that the server will process the JSP using