1 Reply Latest reply on Sep 16, 2002 7:03 AM by Cokorda Raka Angga Jananuraga

    java.io.FileNotFoundException (trying to access file from JS

    Cokorda Raka Angga Jananuraga Newbie

      Hi,

      I got this problem when trying to access file.
      This problem didn't occur on Resin nor Tomcat, etc.

      I'm using JBoss-3.0.2_Tomcat-4.0.4
      And I've deployed my webapp as a directory named "usingxtags.war"

      ...........
      <%@ page import="java.io.*" %>
      <%
      File file = new File("cdr.xml");
      FileReader fr = new FileReader(file);
      BufferedReader br = new BufferedReader(fr);
      String line = br.readLine();
      while(line != null)
      {
      out.print(line + "");
      line = br.readLine();
      }
      %>
      ...........

      What have I missed?

      Thanks in advance,
      Raka