commit
b79277e408
|
@ -79,9 +79,6 @@ public class RedditController {
|
|||
@RequestMapping("/post")
|
||||
public String showSubmissionForm(Model model) throws JsonProcessingException, IOException {
|
||||
try {
|
||||
List<String> subreddits = getSubreddit();
|
||||
model.addAttribute("subreddits", subreddits);
|
||||
|
||||
String needsCaptchaResult = needsCaptcha();
|
||||
if (needsCaptchaResult.equalsIgnoreCase("true")) {
|
||||
String newCaptchaResult = getNewCaptcha();
|
||||
|
|
|
@ -23,13 +23,7 @@
|
|||
<br><br>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3">Subreddit</label>
|
||||
<span class="col-sm-9">
|
||||
<select name="sr">
|
||||
<c:forEach items="${subreddits}" var="item">
|
||||
<option value="${item}">${item}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</span>
|
||||
<span class="col-sm-9"><input name="sr" placeholder="Subreddit" class="form-control" /></span>
|
||||
</div>
|
||||
<br><br>
|
||||
|
||||
|
|
Loading…
Reference in New Issue