title: reading properties file from JSTL
body: <p>I am trying to read a "properties file" form JSTL using taglib , but i can't access it</p>
  
  <pre><code>&lt;%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%&gt; 
  </code></pre>
  
  <p>I've located the tld file correctly in the web.xml , am sure of this</p>
  
  <pre><code>&lt;taglib&gt;
  &lt;taglib-uri&gt;http://java.sun.com/jstl/fmt&lt;/taglib-uri&gt;
  &lt;taglib-location&gt;/WEB-INF/lib/fmt.tld&lt;/taglib-location&gt;
  &lt;/taglib&gt;
  </code></pre>
  
  <p>The properties file name is msg. properties</p>
  
  <pre><code>&lt;fmt:bundle basename="msg"&gt;
  &lt;fmt:message key="error.more" /&gt;
  &lt;/fmt:bundle&gt;
  </code></pre>
  
  <p>I keep getting</p>
  
  <pre><code>???error.more???
  </code></pre>
  
  <p>instead of the message in properties file</p>
  
  <p>I think the problem is either in locating the properties file , 
  or in the base name in</p>
  
  <pre><code>&lt;fmt:bundle basename="msg"&gt;
  </code></pre>
  
  <p>where should I locate the properties file , and how can I make a reference to it in the code??</p>
  
  <p>thanks everyone</p>