<html:radio property="selectID" name="t" />

解决方案 »

  1.   

    <html:radio property="selectID" value='<bean:write name="t" property="selectID"/>' />
      

  2.   

    按楼上所说,解释后的html代码为<input type="radio" name="selectID" value="<bean:write name="t" property="selectID"/>">还不行..请大家继续关注..
      

  3.   

    <input type="radio" name="selectID" value='<bean:write name="t" property="selectID"/>'>
      

  4.   

    用bean;define
    <bean:define id="str" name="t" property="selectID"/>
    <html:radio property="selectID" value="<%=str%>"/>
      

  5.   

    如果按楼上所说的用.还不如...<html:radio property="selectID" value="<%=t.getSelectID()%>" />
    我的意思是<html:radio property="selectID" value="????"/>这个语句的问号处,能不能用标签替换!郁闷中...................................................
      

  6.   

    不能。其实一般来说,html:radio的value都是写死的。
      

  7.   

    我看了一下我以前的代码,好像不能在<html:radio中嵌套使用标签了。
      

  8.   

    谢谢了...再等一下....
    除了不用在<html:radio/>中用嵌套标签,但我想把t对象中的selectID值,做为标签的值,有什么方法可以实现..就是说
    <html:radio property="selectID" value="<%=t.getSelectID()%>" />
    这个语句完全用标签来实现,怎么实现,因为我不希望我的任何页面上出现"<%%>"符号!!!我想应该可以实现的...
      

  9.   

    <input type="radio" value='<bean:write.......
      

  10.   

    <html:radio property="selectID" value="1" />
    这是写死了的,
      

  11.   

    按照你说的,只能自己写标签来实现。struts的标签是不支持嵌套的。