其他分享
首页 > 其他分享> > jsp

jsp

作者:互联网

<%@ 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>

 

标签:输出,二重,long,循环,jsp,table
来源: https://www.cnblogs.com/longlong000312/p/14537033.html