Initial commit for Git.

This commit is contained in:
Erik C. Thauvin 2012-05-14 13:37:38 -07:00
parent 98b1521e20
commit 9595f70fd7
27 changed files with 1790 additions and 1780 deletions

View file

@ -1,25 +1,25 @@
<%@page import="java.io.*"%>
<html>
<body>
<pre>
<%
<%@page import="java.io.*"%>
<html>
<body>
<pre>
<%
String file = request.getParameter("file");
if ((file != null) && (file.trim().length() > 0) && (file.indexOf( ".." ) == -1)) {
InputStream is = pageContext.getServletContext().getResourceAsStream(file);
if (is != null) {
InputStreamReader isr = new InputStreamReader(is);
for (int ch = isr.read(); ch != -1; ch = isr.read()) {
if (ch == '<') {
out.print("&lt;");
} else if (ch == '\t') {
out.print(" ");
} else {
out.print((char) ch);
}
}
}
}
%>
</pre>
if (is != null) {
InputStreamReader isr = new InputStreamReader(is);
for (int ch = isr.read(); ch != -1; ch = isr.read()) {
if (ch == '<') {
out.print("&lt;");
} else if (ch == '\t') {
out.print(" ");
} else {
out.print((char) ch);
}
}
}
}
%>
</pre>
</body>
</html>