Skip to content
Snippets Groups Projects
Commit b2ad69f3 authored by Tim Levett's avatar Tim Levett
Browse files

fix path of resources, fix null case

parent ddee07d0
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@
<finalName>myuw-error-valve</finalName>
<resources>
<resource>
<directory>../ROOT/src/main/webapp</directory>
<directory>../myuw-root-webapp/src/main/webapp</directory>
<includes>
<include>*.html</include>
</includes>
......
......@@ -35,7 +35,10 @@ public class MyUWErrorValve extends ErrorReportValve implements Valve {
}
try {
in = MyUWErrorValve.class.getResourceAsStream(page);
if(in == null) {
//page missing or something, revert to simpler times
response.getWriter().write("<html><head><title>Error: "+ statusCode + "</title></head><body>"+ statusCode + "</body><html>");
}
int c;
while ((c = in.read()) != -1) {
response.getWriter().write(c);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment