index.html (系统找不到指定的文件。)
<%@page contentType="text/html;charset=gb2312"%>
<%@ page import="java.io.*"%>
<%@ page import="javax.servlet.http.*"%>
<%@ page import="javax.servlet.*"%>
<%
String str="print me:";
String nameOfTextFile="index.html";
InputStream in = null;
//PrintWriter out1 = new PrintWriter(in);
//ServletOutputStream out1=request.getOutputStream();
try {
in = new BufferedInputStream(new FileInputStream(nameOfTextFile));
int ch;
while((ch = in.read())!=-1){
out.print((char)ch);
}
}
finally{
if(in !=null)in.close();
// in.close();
}
//out.printl
%>
?????????index.html (系统找不到指定的文件。)
请问这个文件要放在哪里或者说要怎么设置?tomcat+win2000server