%@ include file="doInitPage.jsp" %>
<% /**
Jspskelton.jspSystemDisplay all jsp text embedded inside html10/08/01 us Gilbert Brault
creation
read the jsp as specifyed by name variable
parse it
transform every bit of none html to html text (by identification (parsing) and normalization)
improve presentation
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
<%
}
%>