你还能显示,我的<select property="unitVoucher"><option value="$">dollar</option>
<option value="%">percent</option></select>
我form中有unitVoucher直为%,但是他死人只显示dollar,各位有什么简单方法没有。

解决方案 »

  1.   

    我这样可以哦。
    <html:select property="PHASE_REPORT">
        <html:option value="">----</html:option>
        <html:option value="周报">周报</html:option>
        <html:option value="月报">月报</html:option>
        <html:option value="完成报告">完成报告</html:option>
     </html:select>
      

  2.   

    请问你是怎么做到的?
    是不是struts中有区别呢?
      

  3.   

    <html:select property="softCateId" value="softCateId">
    <%
    while(rs.next()){%>
    <html:option value="<%= rs.getString("CATEGORY_ID") %>"><%= rs.getString("CATEGORY_DESC") %></html:option>
    <%}%>
    </html:select>
    参考一下这个吧
      

  4.   

    <html:select property="categoryId" value="<%=softCateId%>">
    <%
    while(rs.next()){
    %>
    <html:option value="<%= rs.getString("CATEGORY_ID") %>"><%= rs.getString("CATEGORY_DESC") %></html:option>
    <%}%>
    </html:select>
      

  5.   

    <select name="lanmu">
         <option><bean:write name="manageForm" property="lanmu"/></option>
                           <option>文件</option>
                <option>国家</option>
                <option>教育</option>
                
              </select>