I'm teaching myself
JSP, and in trying to run a jsp from a book I'm reading I consistently get a "Page cannot be found" error in MIE.
I'm running
Tomcat 3.2.2 on an Apache server, on a Linux box. I know the file is where I think I said it is. Here's my code:
<html>
<head>
<title>Read a File</title>
</head>
<body>
<%@ page import="java.io.*" %>
<pre>
<%
File fileObject = new File("c:\\java\\test.txt");
FileReader fileRead = new FileReader( fileObject );
BufferedReader buffFileIn = new BufferedReader( fileRead );
String line = "";
while( ( line = buffFileIn.readline() ) != null )out.println( line + "<br>" );
fileRead.close();
%>
</pre>
</body>
</html>
I'm guessing I've made some sort of syntax error. I'm trying to get a file from my computer (a Windows machine, not the same machine as the Linux machine on which Tomcat and Apache are running). Does anyone know what I'm doing wrong? My other jsp's work just fine.
Thanks in advance for any enlightenment.