title: SpringBoot Application: Accessing Common application properties in a JSP page
body: <p>I'm trying to access a property set in my application.properties in a JSP page. This is for display purposes which sends a user to a different application from our admin page. Its not needed in code at all.</p>
  
  <p>application.properties entry:</p>
  
  <pre><code>frontend.url=http://example.com/some_endpoint
  </code></pre>
  
  <p>In my JSP file
  I've tried these variations below.</p>
  
  <pre><code>&lt;spring:eval  expression="('frontend.url')" /&gt;
  &lt;spring:eval  expression="'frontend.url'" /&gt;
  </code></pre>
  
  <p>These below throw errors</p>
  
  <pre><code>&lt;spring:eval  expression="@getProperty('frontend.url')" /&gt;
  &lt;spring:eval  expression="@frontend.url" /&gt;
  &lt;spring:eval  expression="@applicationProperties.getProperty('frontend.url')" /&gt;
  </code></pre>
  
  <p>Is there a specific syntax to use or should I just expose a request attribute from a controller?</p>
  
  <pre><code>@Value("${frontend.url}")
  private String urlForDisplayPurposes;
  </code></pre>
  
  <p>I know the proposed method explained here <a href="http://javaninja.net/2014/01/how-to-use-spring-properties-values-in-a-jsp/" rel="noreferrer">enter link description here</a>
  works but I really don't want an extra properties file.</p>