当前位置:编程学习 > JSP >>

求大神 以下的jsp代码哪里错了

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <html> <body> <jsp:include page="table.jsp"> <jsp:param value="20" name="n"/> <jsp:param value="20" name="m"/> </jsp:include> </body> </html> ############################################## <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <html> <body> <% String s1 = request.getParameter("n"); String s2 = request.getParameter("m"); int n = Integer.parseInt(s1); int m = Integer.parseInt(s2); %> <%=n %>行<%=m %>列的表格 <table border="1" > <% for(int i=1;i<=n;i++){ %> <tr> <% for(int j=1;j<=m;j++){ %> <td>a</td> <%} %> </tr> <%} %> </table> </body> </html>
补充:没错。。。没错。。。意外意外
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,