RT

解决方案 »

  1.   

    前提是要导入JSTL标签库
         <c:forEach var="i" begin="1" end="9" step="1"> 
             <c:forEach var="j" begin="1" end="${i}" step="1"> 
         <c:out value="${j}" />*<c:out value="${i}" />=<c:out value="${i*j}" />
               <c:choose>
       <c:when test="${i*j>9}">&nbsp;</c:when>
       <c:otherwise>&nbsp;&nbsp;</c:otherwise>
    </c:choose>
        </c:forEach>
        <br />
        </c:forEach>