title: Simple Hello World Grails Form Submission
body: <p>I am new to Grails and I am trying to get a very simple example to work. I should just submit a form and display "Hello World" on the screen. It consists of the following controller:</p>
  
  <pre><code>package surface
  
  class SearchController {
  
   def index() {
      render(view: "search")
   }
  
   def result() {
      render "Hello World"
   }
  }
  </code></pre>
  
  <p>and a view, with the form:</p>
  
  <pre><code>&lt;%@ page contentType="text/html;charset=UTF-8" %&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;g:form name="searchform" url="result"&gt;
  &lt;g:textArea cols="80" rows="30" name="searchfield"/&gt;
  &lt;g:actionSubmit value="Ask"/&gt;
  &lt;/g:form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I click on "Ask" I get a 404 error but the browser correctly accesses "/surface/search/result". When I enter that address directly without using the form the "Hello World" appears correctly. This is probably a no-brainer but I seem to be unable to find out why this does not work from the documentation.</p>