-
Type:
Suggestion
-
Resolution: Fixed
-
None
-
Component/s: None
-
None
-
Environment:
*Location*: https://developer.atlassian.com/stash/docs/latest/tutorials-and-examples/decorating-the-user-account.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
*Screen Resolution*: 1440 x 900
Rating:
Awesome!
What do you like?
Great tutorial
What needs to be improved?
The code section in the "Render the template" section is malformed and missing content:
private void render(HttpServletResponse resp, String templateName, Map<String, Object> data) throws IOException, resp.setContentType("text/html;charset=UTF-8");
I believe it needs to be:
private void render(HttpServletResponse resp, String templateName, Map<String, Object> data) throws IOException, ServletException { resp.setContentType("text/html;charset=UTF-8");