title: Conditions in Spring expression language(SpEL) used in bean definition
body: <p>As far SpEL is used in Spring 3.0,</p>
  
  <p>I would like to ask, is it possible to do following(in bean definition .xml):</p>
  
  <pre><code>&lt;c:choose&gt;
  
    &lt;c:when test="#{prop=='a'}"&gt;
     &lt;bean class="BeanA"/&gt;
    &lt;/c:when&gt;
  
    &lt;c:otherwise&gt;
     &lt;bean class="BeanB"/&gt;
    &lt;/c:otherwise&gt;
  
  &lt;/c:choose&gt;
  </code></pre>
  
  <p>Someth. like in jstl.</p>
  
  <p>Thank you for help.</p>