Include « Resource « JSP-Servlet Q&A





2. Include JSP resource from JAR file?    coderanch.com

Hi Bear, I do something like this ... After reading the jsp snippet from a stream, in your case from the jar file, I HTTP POST the jsp snippet to a servlet. it is passed as a request parameter called "jsp". The code of the interpreter servlet is reproduced below....Works for me. Interpreter.jsp java.io.File jsp = new java.io.File( application.getRealPath("")+"/temp.jsp") ; java.io.FileWriter ...

3. jsp:include resource not found    coderanch.com

Is there any way to know in JSP,if jsp include files are missed. For example if a file include.jsp is not present and in my jsp if i have include code like this . I can't see any error was thrown. But if i try the same with <%@ include file="include.jsp" %>, my page is getting failed at compile ...