日期:2014-05-18  浏览次数:20603 次

关于struts标签中的bean:message和html:radio
<html:radio   property= "companytype "   styleId= "companytype "   value= "1 "> <bean:message   key= "companyForm.companytype.typeone "   /> </html:radio>
这个是第一种
              <html:radio   property= "companytype "   styleId= "companytype "   value= " <bean:message   key= 'companyForm.companytype.typethree '   /> ">
                <bean:message   key= "companyForm.companytype.typethree "   /> </html:radio>
这个是第2中,
为什么提交上去之后,第一种的有值,为1,但是我想把value的值改为bean:message里面的数据的时候提交上去的时候没东西???

------解决方案--------------------
struts标签似乎不可以嵌套,你只能把外层的写成html形式,如下:
<input type=radio name= "companytype " styleId= "companytype " value= " <bean:message key= 'companyForm.companytype.typethree ' /> "/>
<bean:message key= "companyForm.companytype.typethree " />

当初我做网站的时候都是这么处理的,很郁闷