Commit f5adb03b by Tuukka Kivilahti

prelento-commit

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