title: Error in dynamic loading of spring checkbox tags in jsp using jQuery
body: <p>I 'm dynamically loading spring checkbox tags according to changes in <em>select</em> tag. But it generates error like :</p>
  
  <pre><code>2012-08-31 09:27:14.829 org.springframework.web.servlet.tags.RequestContextAwareTag doStartTag: Neither BindingResult nor plain target object for bean name 'stockList' available as request attribute
  W 2012-08-31 09:27:14.831 /stocks
  java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'stockList' available as request attribute
  C 2012-08-31 09:27:14.832 Uncaught exception from servlet
  java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'stockList' available as request attribute
  </code></pre>
  
  <p>in my app engine server log.</p>
  
  <p>My code is given below</p>
  
  <pre><code>&lt;link rel="stylesheet"
      href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" /&gt;
  &lt;script src="http://code.jquery.com/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
  &lt;script
      src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      function loadStocks() {
          var exchange = $("#stockExchange").val();
          var a;
          if (exchange = "BO") {
              a = "&lt;form:checkbox path='stockList' value='INFY' label='Infosys' /&gt;"
                      + "&lt;form:checkbox path='stockList' value='HINDALCO' label='HINDALCO' /&gt;"
                      + "&lt;form:checkbox path='stockList' value='TTM' label='Tata Motors' /&gt;";
          } else if (exchange == "NS") {
              a = "&lt;form:checkbox path='stockList' value='INFY' label='Infosys' /&gt;";
          }
          $("#kit").html(a);
      }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div data-role="page"&gt;
          &lt;div data-role="content"&gt;
              &lt;form:form method="POST" commandName="search"&gt;
                  &lt;ul data-role="listview"&gt;
                      &lt;li data-role="fieldcontain"&gt;
                          &lt;div id="kit"&gt;
                              &lt;form:select path="stockExchange" onchange="loadStocks()"
                                  id="stockExchange"&gt;
                                  &lt;form:option value=""&gt;Select Stock Exchange&lt;/form:option&gt;
                                  &lt;form:option value="BO"&gt;BSE&lt;/form:option&gt;
                                  &lt;form:option value="NS"&gt;NSE&lt;/form:option&gt;
                              &lt;/form:select&gt;
                          &lt;/div&gt;
                      &lt;/li&gt;
  
                      &lt;li data-role="fieldcontain"&gt;&lt;label&gt;Select Stocks&lt;/label&gt;
                          &lt;div id="kit"&gt;
                              &lt;form:checkbox path="stockList" value="INFY" label="Infosys" /&gt;
                              &lt;form:checkbox path="stockList" value="HINDALCO" label="HINDALCO" /&gt;
                              &lt;form:checkbox path="stockList" value="TTM" label="Tata Motors" /&gt;
                              &lt;form:checkbox path="stockList" label="RELIANCE IND."
                                  value="RELIANCE" /&gt;
                          &lt;/div&gt;&lt;/li&gt;
  
                      &lt;li data-role="fieldcontain"&gt;&lt;input type="submit"
                          value="Submit" /&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/form:form&gt;
          &lt;/div&gt;
          &lt;!-- /content --&gt;
  
      &lt;/div&gt;
      &lt;!-- /page --&gt;
  
  &lt;/body&gt;
  </code></pre>