Use absolute path
authorJaroslav Tulach <jtulach@netbeans.org>
Thu, 10 Sep 2009 22:48:21 +0200
changeset 74b2af4da1cbbe
parent 73 b3165f3a9ad7
child 75 6802034b7a6f
Use absolute path
freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt
freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java
     1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt	Tue Sep 08 15:29:15 2009 +0200
     1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt	Thu Sep 10 22:48:21 2009 +0200
     1.3 @@ -59,7 +59,7 @@
     1.4        </#list>
     1.5        </ol>
     1.6  
     1.7 -      <form action="games/create">
     1.8 +      <form action="/games/create">
     1.9              ${bundle.WHITE}: <input type="text" name="white" value="" />
    1.10              ${bundle.BLACK}: <input type="text" name="black" value="" />
    1.11              <input type="submit" value="${bundle.CREATE}" />
     2.1 --- a/freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java	Tue Sep 08 15:29:15 2009 +0200
     2.2 +++ b/freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java	Thu Sep 10 22:48:21 2009 +0200
     2.3 @@ -125,7 +125,7 @@
     2.4              fail("There was an error:\n" + res);
     2.5          }
     2.6          res = webResource.cookie(Cookie.valueOf("login=jarda")).accept("text/html").get(String.class);
     2.7 -        if (res.indexOf("action=\"games/create\"") == -1) {
     2.8 +        if (res.indexOf("action=\"/games/create\"") == -1) {
     2.9              fail(res);
    2.10          }
    2.11      }