<c:forEach items="${rightAds}" var="ad">
    <c:set var="url" value="${ad.url }"></c:set>
   <c:if test='${url.indexOf("?")>1 }'>
      <a href="${ad.url }&type=ad" target="_blank">
          <img src="${adImgPath }${ad.imge }" border="0" /> </a>
   </c:if>
</c:forEach>
为什么indexOf处有错?