请教一个JSP问题,急急急
题目:用1号到5号字显示“JSP世界”。
我的代码是这样的,请问哪边有错.
<%@ page contentType= "text/html; charset=GBK " %>
<html>
<head>
<title>
Ex2
</title>
</head>
<body bgcolor= "#d485d5 ">
<%! int i;%>
<% for(int i=1;i <=5;i++){%>
<font size= <%=i%> > JSP WORLD! </font> <br>
<%}%>
</body>
</html>
------解决方案--------------------没有错误啊
------解决方案-------------------- <%! int i;%> 修改成 <%int i;%> 多了个感叹号 !!!
------解决方案--------------------没有问题
我这里测试通过!
------解决方案--------------------你的报什么错?
------解决方案--------------------肯定没有错!!