org.apache.jasper.JasperException:UnabletocompileclassforJSP:Anerroroccurredatline:50inthejspfile:/ay/a.jspDataOutcannotberesolved47:FileOutputStreamo=newFileOutputStream...
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 50 in the jsp file: /ay/a.jsp
DataOut cannot be resolved
47: FileOutputStream o=new FileOutputStream(f,true);
48: for(int k=0;k
49: {
50: DataOut.writeUTF(name[k]);
51: DataOut.writeUTF(math[k]);
52: DataOut.writeUTF(english[k]);
53: }
依次java代码都提示错误
提示错误。是不是环境没有弄好的事呀。
姓名 | 数学 | 英语 |
---|
int i=0;
while(i<=5)
{
out.println("
");out.println("
");out.println("");
out.println("
");out.println("
");out.println("");
out.println("
");out.println("
");out.println("");
out.println("
");out.println("
");i++;
}
%>
String name[]=request.getParameterValues("name");
String math[]=request.getParameterValues("math");
String english[]=request.getParameterValues("english");
try
{
File f=new File("e:/student.txt");
FileOutputStream o=new FileOutputStream(f,true);
for(int k=0;k
{
DataOut.writeUTF(name[k]);
DataOut.writeUTF(math[k]);
DataOut.writeUTF(english[k]);
}
DataOut.close();
o.close();
}
catch(IOException e)
{
}
catch(NullPointerException ee)
{
}
%>
这个是源代码。
展开