diff --git a/spring-security-oauth/src/main/java/org/baeldung/web/RedditController.java b/spring-security-oauth/src/main/java/org/baeldung/web/RedditController.java index b23ee26f11..1ce1417159 100644 --- a/spring-security-oauth/src/main/java/org/baeldung/web/RedditController.java +++ b/spring-security-oauth/src/main/java/org/baeldung/web/RedditController.java @@ -79,9 +79,6 @@ public class RedditController { @RequestMapping("/post") public String showSubmissionForm(Model model) throws JsonProcessingException, IOException { try { - List subreddits = getSubreddit(); - model.addAttribute("subreddits", subreddits); - String needsCaptchaResult = needsCaptcha(); if (needsCaptchaResult.equalsIgnoreCase("true")) { String newCaptchaResult = getNewCaptcha(); diff --git a/spring-security-oauth/src/main/webapp/WEB-INF/jsp/submissionForm.jsp b/spring-security-oauth/src/main/webapp/WEB-INF/jsp/submissionForm.jsp index b2f6ad5eae..6175d1e517 100755 --- a/spring-security-oauth/src/main/webapp/WEB-INF/jsp/submissionForm.jsp +++ b/spring-security-oauth/src/main/webapp/WEB-INF/jsp/submissionForm.jsp @@ -23,13 +23,7 @@

- - - +