Commit d0650781 by Tuukka Kivilahti

prelento-commit

1 parent f5adb03b
......@@ -138,12 +138,14 @@ 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
e.printStackTrace();
} 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!