struts好像不支持标签嵌套,把html:option换成html的标签就可以了

解决方案 »

  1.   

    <html:select property="roleid">
          <html:optionsCollection property="rolelist" label="rolename" value="roleid"/>
        </html:select>
      

  2.   

    <html:option value="<bean:write name="element"/>">
    这里好象有问题 改问<html:option value=‘<bean:write name="element"/>’>试试
      

  3.   

    学习..
    <html:option value="<bean:write name='element'/>">
      

  4.   

    谢谢大家拉:)
    <html:option value="<bean:write name="element"/>">
    在任何位置修改成单引号都不行:( 我在看看其他的办法
      

  5.   

    <html:option value="<bean:write name="element"/>">
    这样的嵌套struts是不支持的
    你这个问题应该这样来写
    <html:option value="{$element}">
      

  6.   

    gxl0328(钗头凤) 
    说的对,可以用 html:optionsCollection 标签,或者用html:options标签来完成这个功能:)myth822(枫红一刀)
    说的也不错
      

  7.   

    <html:option>
        <bean:write name="element"/>
    </html:option>
      

  8.   

    来 7232400 QQ群吧!STRUTS学习的好去处。大家一起进步!