能说的更清楚一点吗?option中显示的label是id+“  ”+key 是指option text(即用户看到的值)吗?这个id从哪里来啊

解决方案 »

  1.   


    option中显示的label是id+“  ”+key   写错了  是key+ vlue  就是要显示给用户看到的 
      

  2.   

    当初我是这么做的,不知有没有参考价值。<logic:notPresent name="products" scope="request">信息暂时没有!</logic:notPresent>
    <logic:present name="products" scope="request">
         <html:select property="productCata">
         <html:options collection="products" property="id" labelProperty="productCata"/>
          </html:select>
    </logic:present>