请给我代码吧,谢谢

解决方案 »

  1.   

    给你个参照:<html:select name="KyouikusearchView" property="dropListCNm" >
    <bean:define id="dropListCompanyNm" name="KyouikusearchView" property="dropListCompanyNm"/>
    <html:options collection="dropListCompanyNm" property="value" labelProperty="label"/>
    </html:select>
    KyouikusearchView是个JAVABEAN 里面只有一些属性和对应的get和set方法 如 property="dropListCNm" 的dropListCNm属性 就是它来在jsp页面上显示你选中的值collection="dropListCompanyNm" 的dropListCompanyNm就是你的option里的值的集合 应该是你从数据库里取得的
      

  2.   

    在form里面創建一個(List)dropListCompanyNm和(String) KyouikusearchView,用來裝下拉列表和初始值,
    在List里面裝一個對象,對象內包括下拉列表的value和label,兩個東東,
    <html:select property="KyouikusearchView">
    <html:optionsCollection property="dropListCompanyNm" value="value" label="label" />
    </html:select>
    這樣寫就好了
      

  3.   

    请问有人用过超義科技的Power Process 软件吗?