title: How to load properties of a bean dynamically in Spring
body: <p>I am new to Spring framework and confused how to load properties of a bean ( Instance variables of a bean ) dynamically . Spring expects to use xml based configuration for declaring all the beans and dependencies between beans . 
  For example , </p>
  
  <pre><code>public class Bean1
     {
          int value; 
          public void setValue(int thisValue)
          {
               value = thisValue;
           }
  
     }
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;bean id = "LibraryMgmtBean" class = "Bean1"&gt;
   &lt;property name = "value" Value = "SampleString"/&gt;   &lt;/bean&gt; 
  </code></pre>
  
  <p>But here we are mentioning all the properties of a bean statically . But , what if I want to supply these values dynamically . I mean , I may get values from a JSP page from weblayer and should pass to this bean .  And as all beans are declard in XML this way , how Spring Injects dependecies of other beans when all bean properties are supplied dynamically  ?</p>