“找不到类“的错误原因是?
现有一jsp页面:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%! string a;%>
<% a="Hello,World!";%>
<% for (int i=1;i<100;i++)%>
<% out.println(i+":"+a);%>
</body>
</html>
运行时报错:错误信息如下:
500 Servlet Exception
/1023.jsp:8: 找不到类 string。
string a;
^
/1023.jsp:9: = 中未找到类 string。
a="Hello,World!";
^
/1023.jsp:9: = 的不兼容类型。无法将 java.lang.String 转换为 string。
a="Hello,World!";
^
/1023.jsp:11: 未定义变量:i
out.println(i+":"+a);
^
4 个错误
--------------------------------------------------------------------------------
Resin 2.0.3 (built Wed Oct 17 10:11:08 PDT 2001)
请问是那方面的错?