Commit f5adb03b by Tuukka Kivilahti

prelento-commit

1 parent a186862d
......@@ -137,11 +137,13 @@ public class PlaceMapServlet extends HttpServlet {
}
} catch (EJBException e) {
logger.debug("Permission denied. Returning SC_FORBIDDEN!");
response.setContentType("text/html;charset=UTF-8");
response.setStatus(HttpServletResponse.SC_FORBIDDEN);
ostream = response.getOutputStream();
ostream.print("Error 403 \nPermission denied! Please login before accessing resource");
throw new RuntimeException(e); // TODO: remove
} finally {
if (ostream != null) {
ostream.close();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!