title: How to use SPEL eval @environment.getProperty(String string, Class<T> targetType) in JSP?
body: <p>How to use SPEL eval </p>
  
  <pre><code>@environment.getProperty(String string, Class&lt;T&gt; targetType) 
  </code></pre>
  
  <p>in JSP?</p>
  
  <p>I have a .property file with following entry,</p>
  
  <pre><code>app.conf.context.is_this_ok=true
  </code></pre>
  
  <p>I was able to get this working in JSP, with string valued varibale.</p>
  
  <pre><code>    &lt;spring:eval var="isThisOk"
   expression="@environment.getProperty('app.conf.context.is_this_ok')"/&gt;
  </code></pre>
  
  <p>But failed with getting value as boolean with following,</p>
  
  <pre><code>    &lt;spring:eval var="isThisOk" expression="
             @environment.getProperty('app.conf.context.is_this_ok', 
                  &lt;%= java.lang.Boolean.class %&gt;)"
      /&gt;
  </code></pre>
  
  <p>Please do suggest a way.</p>