title: Spring MVC Application - How do I set a session scoped bean value
body: <p>In my application I need to gather information on one screen and then display it on the next.</p>
  
  <p>I have selected to store this information in a bean with a scope set as session ( it will be used in several other screens after the initial data gathering screen)</p>
  
  <p>The Manager is configured as follows:</p>
  
  <pre><code> &lt;bean name="/springapp.htm" class="foo.bar.controller.springcontroller"&gt;
          &lt;property name="sessionBeanManager" ref="sessionBeanManager" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>The bean is configured as follows :</p>
  
  <pre><code>&lt;bean id="sessionBean" class="foo.bar.sessionBean" scope="session"&gt;
      &lt;aop:scoped-proxy/&gt;
     &lt;property name="beanValue" value="defaultValue" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="sessionBeanManager" class="foo.bar.sessionBeanManagerImpl"&gt;
      &lt;property name="sessionBean" ref="sessionBean"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>And I am outputting on the jsp page with </p>
  
  <pre><code>&lt;c:out value="${sessionBean.beanValue}"&gt;&lt;/c:out&gt;
  </code></pre>
  
  <p>but whenever I load the page the value is empty?</p>
  
  <p>It seems to me that the bean is loading OK but is not populated with the value, which leads me to think that either the session bean is not being populated or the bean is not being created as a session bean?</p>