title: Grails - 404 File not found - but why?
body: <p>i start to write a simple login formular. This is the code for the view:</p>
  
  <pre><code> &lt;g:form controller="login" action="checkUsernameAndPassword"&gt;
          &lt;input type = "text"name="userNameField" value="userName"/&gt;
          &lt;input type = "password"name="passWordField" value="passWord"/&gt;
          &lt;input type = "submit" name="loginButton" value="Login"/&gt;
  
   &lt;/g:form&gt;
  </code></pre>
  
  <p>this is the code for the controller:</p>
  
  <pre><code>class LoginController {
  
  def index = {
  
      render(view: "login")
  }//endMethod Index
  
  def checkUsernameAndPassword = {
  
      [userName = params.userName ,passWord = params.passWord];
  
  }//endMethod checkUsernameAndPassword
  </code></pre>
  
  <p>}</p>
  
  <p>as you can see, it doesnt do anything yet, i just wanted to print the values on the screen, however i get a 404 message (i run the file on local host) </p>
  
  <pre><code>The requested resource (/projectName/hello/checkUsernameAndPassword) is not available.
  </code></pre>
  
  <p>I just cant figure out why. Would be great if any of you guys have a tip for me.</p>
  
  <p>beste regards, 
  Daniel</p>
  
  <p>Edit (Change 1):</p>
  
  <pre><code>    def checkUsernameAndPassword = {
  
      render(view: "login",model: [userName: params.userName ,passWord: params.passWord])
  
  }//endMethod checkUsernameAndPassword
  </code></pre>
  
  <p>}</p>
  
  <p>(Change 2)
  //added this line in view</p>
  
  <pre><code>&lt;div&gt;Username: ${userName} Passwort: ${passWord}&lt;/div&gt;
  </code></pre>