DONE新学JSP,在书上抄的第一个程序,type Exception!
新学JSP,在书上抄的第一个程序,type Exception!帮我指出,谢谢~~<% @ page contentType="text/html; charset=gbk" %>
<% @ page language ="java" %>
<HTML>
<head>
<title>第一个JSP程序</title>
</head>
<BODY>
<%
out.print("<H3>Hello China!</H3>");
int sum=0;
out.print("0");
for(int i=1;i<=10;i++){
out.print("+"+i);
sum=sum+i;
}
out.print("="+sum);
%>
</BODY>
</HTML>
[此贴子已经被作者于2007-10-14 17:40:54编辑过]
搜索更多相关主题的帖子:
Exception DONE JSP type
----------------解决方案--------------------------------------------------------
<%@ page contentType="text/html; charset=gbk" %>
<%@ page language ="java" %>
<HTML>
<head>
<title>第一个JSP程序</title>
</head>
<BODY>
<%
out.print("<H3>Hello China!</H3>");
int sum=0;
out.print("0");
for(int i=1;i<=10;i++){
out.print("+"+i);
sum=sum+i;
}
out.print("="+sum);
%>
</BODY>
</HTML>
----------------解决方案--------------------------------------------------------
明白了,谢谢~~
----------------解决方案--------------------------------------------------------