title: JSTL fmt:message and resource bundle
body: <p>I want to set the "dir" property of my table from resource bundle based on the locale.</p>
  
  <p>Here is snippet:</p>
  
  <pre><code>        &lt;fmt:setBundle basename="class.path.to.resource.bundle"/&gt;
          &lt;table align=center class="" dir=&lt;fmt:message key="registration.direction"/&gt;&gt;
  </code></pre>
  
  <p>When the page renders I get this:</p>
  
  <pre><code>   &lt;table align=center dir=???registration.direction???&gt;
  </code></pre>
  
  <p>I have two resource bundles for english and arabic.</p>
  
  <p>registration.direction = ltr -> English</p>
  
  <p>registration.direction = rtl -> Arabic</p>
  
  <p>Please tell what I am doing wrong? The dir should have "ltr" or "rtl" depending on the locale.</p>
  
  <p>Thanks</p>
  
  <p>BR
  SC</p>