From 947dd5fcd9288ee698d6cf05f0ca82e223817c99 Mon Sep 17 00:00:00 2001 From: foo Date: Sun, 18 Dec 2016 07:54:41 +0000 Subject: [PATCH] tweaks --- war/build.jsp | 20 +++++++++++--------- war/index.jsp | 4 ++-- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/war/build.jsp b/war/build.jsp index 444d4c5..f07358e 100755 --- a/war/build.jsp +++ b/war/build.jsp @@ -18,6 +18,7 @@ int width = Integer.parseInt(request.getParameter("width")); if (request.getParameter("words").length() > 2048) { throw new Exception("Input too large"); } + if (height > 100 || width > 100) { throw new Exception("Dimentions too large"); } List words = new ArrayList(); for ( String line : request.getParameter("words").split("\r\n")) { @@ -29,14 +30,17 @@

Wordsearch builder

Words

-
    -<% for (String word : words) { %> -
  • <%= word.trim() %>
  • -<% } %> -
+ +
+
    + <% for (String word : words) { %> +
  • <%= word.trim() %>
  • + <% } %> +
+

Grid

- +
<% for(char[] row : grid) { %> <% for(char c : row) { %> @@ -45,8 +49,6 @@ <% } %>
-
- Generated -
+ diff --git a/war/index.jsp b/war/index.jsp index b23c71d..85b8808 100755 --- a/war/index.jsp +++ b/war/index.jsp @@ -4,7 +4,7 @@

Wordsearch builder

Words

- +