title: Spring - bean access in JSP
body: <p>I have configured a bean like this and I have forum.host.url in the file properly</p>
  
  <pre><code>&lt;bean id="forum_host_url" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
          &lt;property name="jndiName" value="forum.host.url"/&gt;
          &lt;property name="resourceRef" value="true"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I need to access this bean value from a JSP, I have tried</p>
  
  <pre><code>${forum_host_url}
  </code></pre>
  
  <p>in my jsp file but its not getting any value. what is the correct way?</p>