title: Displaying text in Thymeleaf
body: <p>I'm totally new in Thymeleaf. Just read about it earlier, now, I'm trying to display some text using Thymeleaf in the front end, getting the values from Spring MVC in back-end.</p>
  
  <p>File <code>successPwd.html</code></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="UTF-8"/&gt;
    &lt;title&gt;Password Change&lt;/title&gt;
   &lt;/head&gt;
  &lt;body&gt;
   &lt;h2&gt;Password Changed&lt;/h2&gt;
   Your password has been changed. Your account information is below.
  
   Username: [[${account.username}]] &lt;br/&gt;
   First Name: [[${account.firstName}]] &lt;br/&gt;
   Last Name: [[${account.surname}]] &lt;br/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>File <code>PasswordResetController.java</code></p>
  
  <pre><code>@RequestMapping(value= "/user/new_password", method = RequestMethod.POST)
  public String saveNewPassword(@RequestParam(value="new_password",required=false) String password, @RequestParam(value="hash") String hash, Model model)
  
  {
      //some codes to check hash
      AccountInfo account = accountInfoService.getAccount(hash);
      model.addAttribute("account", account);
      return "/successPwd";
  }
  </code></pre>
  
  <p>What I'm getting is like this:</p>
  
  <pre><code>Password Changed
  
  Your password has been changed. Your account information is below. 
  Username: [[${account.username}]] 
  First Name: [[${account.firstName}]] 
  Last Name: [[${account.surname}]] 
  </code></pre>
  
  <p>Thymeleaf is not converting to the proper values, most likely I missed something very very basic here. </p>