<%@ include file="doInitPage.jsp" %> <% /** Jspskelton.jsp System Display all jsp text embedded inside html 10/08/01 us Gilbert Brault creation Schneider-Electric 2001 */ %> <% /* Open a jsp file and tries some jspdoc stuff */ ServletContext servletContext = pageContext.getServletContext(); String name = request.getParameter("name"); if (name!=null){ InputStream in = servletContext.getResourceAsStream("/"+name+".jsp"); // dump this ressource if (in!=null){ /* it was a test int c; while ((c = in.read()) != -1){ %> <%= c %> <% } */ com.schneider_electric.ebase.jspdoc.split.PharosDoc pharosDoc = new com.schneider_electric.ebase.jspdoc.split.PharosDoc(in); pharosDoc.parse(); // jsp parsing %> <%= pharosDoc.jspHtml() %> <% // spit out the transformed text } else{ // in == null %> There is not such a file <%= name %> <% } } else { // name == null %> usage /jspSkelton.jsp?name=<jsp prefix to document>
example: http://<server>/documentjsp.jsp?name=doHeaderHtml <% } %>