title: JSP/servlet read parameters from properties file?
body: <p>My JSP pages need to display different information depending on which environment they're in (dev, production, sandbox, etc).  I want to have a properties file for each of these environments that contain all the parameters they might need.  How can I reference the properties from this file in a JSP page?</p>
  
  <p>My thoughts are:</p>
  
  <ul>
  <li>Have a servlet feed the properties in the form of a model object to all JSP pages so I can reference them like ${properties.propertyName}</li>
  <li>Somehow reference this property file in the web.xml, then maybe I call something like ${context.properties.propertyName}?</li>
  <li>Instead of a properties file, list parameters in web.xml and reference those in the JSP pages.  Not sure how to do this, but I'd very much prefer a simpler properties file.</li>
  </ul>
  
  <p><em><strong>UPDATE</strong></em> - I should've mentioned I'm using Spring 3.0 and Spring webmvc.  So if there's some best practices way to do this using Spring, that's ideal!</p>