我的页面是一个从数据库中取得的数据,动态生成的,每行有两个radio,现在想实现这样的效果,当选择其中一个radio后,页面的对应行上的checkbox处于可选或不可选状态,自己用innerHtml写了一个,就是想把对应的checkbox的一个属性进行设置,其他属性不变化,但是提示我 <%=name%> 不对,请各位高人帮我看看,谢谢
<%@ page import= "java.util.List " %>
<html>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<title> 权限设置 </title>
<script language= "javascript ">
function rschangeradio(name,type)
{
if(type==1)
{
document.forms[0].name+ "_readonly ".innerHtml= " <input type= "checkbox " name= <%=name%> + "_readonly " disabled= "true "> ";
}
}
</script>
</head>
<body>
<html:form action= "/LoadParamFileFeeAction ">
<html:hidden property= "action "/>
<html:hidden property= "hiddenradiovalue "/>
<!-- 展示资源信息开始,如果出现错误去掉下面这段就可以恢复原状-->
<logic:notEmpty name = "ResourceList ">
<TABLE border= "1 " cellspacing= "0 " width= "443 " align= "center ">
<tr class= "TH01 ">
<th colspan= "4 " class= "Th01 " align= "center "> 资源信息列表 </th>
</tr>
<tr class= "TH01 ">
<th class= "Th01 " align= "center "> 资源名 </th>
<th class= "Th01 " align= "center "> 继承权限 </th>
<th class= "Th01 " align= "center "> 指定权限 </th>
<th class= "Th01 " align= "center "> 查看 </th>
<th class= "Th01 " align= "center "> 维护 </th>
</tr>
<%
List list=(List)request.getAttribute( "ResourceList ");
if(list.size()!=0)
{
int size=list.size();
for(int i=0;i <size;i++)
{
Fileresource rs=(Fileresource)list.get(i);
%>
<TR>
<TD width= "5% " height= "30 " valign= "bottom " class= "TD02 ">
<DIV align= "right "> <%=rs.getName()%> </DIV>