<logic:iterate id="tkx" name="pecForm" property="EmptyBoxList" >
                <html:hidden name ="tkx" property="id"/>
                <html:hidden name ="tkx" property="solution_ID"/>
                <tr>
                 <td class=<%=n%2==0?"tabletd1":"tabletd2"%> >     
                  <input type="checkbox" name="isEdited"   value="<%=String.valueOf(i++)%>" ${tkx.type==1 ? " disabled='disabled' " : "" }/>
</td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap ><bean:write name="tkx" property="tripid" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap ><bean:write name="tkx" property="pudate" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap ><bean:write name="tkx" property="dlvdate" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="supplier_code" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="suppliername" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="location_code" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="locationdesc" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="name" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="packageQty" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><bean:write name="tkx" property="factory_code" /></td>
                  <td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap><input type="text" name="re_qty" value="<bean:write name="tkx" property="re_qty" />" size="8" ${tkx.type==1 ? " readonly='readonly' " : ""  } ></td>
                  <logic:equal   name= "tkx"   value= "0 "   property="type"> 
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap>未提取</td>
                  </logic:equal>
                   <logic:equal   name= "tkx"   value= "1"   property="type"> 
<td class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap>已提取</td>
                  </logic:equal>
                   <td  class=<%=n%2==0?"tabletd1":"tabletd2"%> nowrap>
                   <html:button  styleClass="buttonfocuslong" property="aaa" onclick="goToAddTkx( '${tkx.solution_ID}','${tkx.stopId}' )" > 新增无计划提空箱</html:button>                   </td>  
               </tr>
               <%n++;%>
               </logic:iterate>我不知道是不是我取表单的值取错了  还是传参的方式传错了。function goToAddTkx(solution_ID,stopId)
{


   alert(soluction_ID)
}执行JS的时候左下脚有错误;

解决方案 »

  1.   

    <html:button styleClass="buttonfocuslong" property="aaa" onclick="goToAddTkx( '\"${tkx.solution_ID}\"','\"${tkx.stopId}\"' )" > 新增无计划提空箱</html:button>试试。
      

  2.   

    function没错,html调用参数的时候有错。要不就运行后看看源码,肯定是引号问题了。
      

  3.   

    源码 是这样的 goToAddTkx(,)  就这样
      

  4.   

    jstl?这样写没问题,应该是其它地方的问题吧,你看下源码,或者用fireDug调式下
      

  5.   

    又是java代码又是jstl的,那个css的class不能写成一个变量吗,js调用有错可以点击右键查看源文件,通过html以及报错的那一行应该可以很快定位了