<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <p>用for二重循环输出一个3行5列的table.</p> <table border="1"> <% for (int i = 0; i < 3; i++) { %> <tr> <% for (int j = 0; j < 5; j++) { %> <td>long</td> <% } %> </tr> <% } %> </table> </body> </html>