<% 
      Type xiangMuShenBaoType=null;
       for(int i=0;i<xiangMuShenBaoTypeList.size();i++){
           xiangMuShenBaoType=(Type)xiangMuShenBaoTypeList.get(i);
           pageContext.setAttribute("xiangMuShenBaoType",xiangMuShenBaoType);
     %>
      
  	//++
  	document.write("<option value='${xiangMuShenBaoType.id }@${xiangMuShenBaoType.name }'>${xiangMuShenBaoType.name }</option>");
  	<%
       }
  	%>



第一个错误就是少了一个后面的"}"   <% %>标签里不能有jsp代码的

第二个错误时引号的问题,单引号双引号如果很多的话,看上去就会很乱,一定要仔细的检查

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2021-09-28
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-01-19
猜你喜欢
  • 2021-09-27
  • 2021-08-24
  • 2022-12-23
  • 2021-10-30
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案