title: Spring MVC/Freemarker: using a message from a bundle in a Freemarker expression
body: <p>In a Fremarker template I need to access a message taken from an i18n resource bundle provided by Spring MVC inside a Freemarker expression.  </p>
  
  <p>I have already imported the Spring macros from <code>spring.ftl</code> and I can use the messages with the following macro:  </p>
  
  <pre><code>&lt;@spring.messageText "my.key" "Default message" /&gt;
  </code></pre>
  
  <p>But actually I'm not able to access messages from inside expressions, such as in built ins:  </p>
  
  <pre><code>${myBoolean?string( ###here I want my true message###, ###here I want my false message###)}
  </code></pre>
  
  <p>How can I do this?</p>