当前位置: 代码迷 >> Eclipse >> struts 中logic:iterate有关问题请教
  详细解决方案

struts 中logic:iterate有关问题请教

热度:82   发布时间:2016-04-23 14:36:37.0
struts 中logic:iterate问题请教
我建了一个,希望当选中radio时,能同步得到该条记录的end_date的值,请问javascript函数中该怎么写?谢谢!

    <logic:iterate   name= "deptTypeInfoForm "   id= "infoVO "   property= "deptTypeInfos ">
    <tr>
<td   class= "table_inner "   align= "center "> <html:radio   name= "deptTypeInfoForm "   property= "deptTypeId "   idName= "infoVO "   value= "deptTypeId "/> </td>
<td   class= "table_inner "   align= "center "> <bean:write   name= "infoVO "   property= "description "/> </td>
<td   class= "table_inner "   align= "center "> <bean:write   name= "infoVO "   property= "startDate "/> </td>
<td   class= "table_inner "   align= "center "> <bean:write   name= "infoVO "   property= "endDate "/> </td>
<html:hidden   name= "infoVO "   property= "deptType "/>
    </tr>
    </logic:iterate>

------解决方案--------------------
你这样写是不可能的,bean:write 写到页面上就是一个字符串,除非你写成一个控件.比如用一个hidden框来保存值
  相关解决方案