Skip to content

Commit

Permalink
[playframework#457] Fix servletWrapper notFound
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebort committed Dec 21, 2010
1 parent a92e1ab commit 6f0375a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions framework/src/play/server/ServletWrapper.java
Expand Up @@ -458,6 +458,23 @@ public ServletInvocation(Request request, Response response, HttpServletRequest
this.response = response;
}

@Override
public boolean init() {
try {
return super.init();
} catch(NotFound e) {
serve404(httpServletRequest, httpServletResponse, e);
return false;
} catch(RenderStatic r) {
try {
serveStatic(httpServletResponse, httpServletRequest, r);
} catch(IOException e) {
throw new UnexpectedException(e);
}
return false;
}
}

@Override
public void run() {
try {
Expand Down

0 comments on commit 6f0375a

Please sign in to comment.