解决方案 »

  1.   

    记得struts2里面有if ,iterator等标签,可以实现,jsp里面的不大清楚了,找找看把
      

  2.   

    strut2 ognl表达式  OR jsp el表达式
      

  3.   

    struts的话 
    if 可以用<s:if test='xxx==yyyy'><s:if>实现
    forEach可以用<s:iterator value="page.products" var="p"><s:property value="#p.estoreprice"/></s:iterator>实现
    如果指定循环次数可以用<s:iterator begin="1" end="5">这样来循环固定次数或者后台传来的begin和end间的次数
      

  4.   

    如果问的是if语句那里的话
    可以用<c:forEach items="${page.products}" var="p" varStatus="ps">
    <c:if test="${ps.index < 7}">  或者 <c:if test="${ps.count < 7}">
    count应该是你需要的先i++后的值
      

  5.   

    使用jstl标签库或者Structs2的ongl语言