hi ALL
   actually i had just started working
   on servlets.
    i m also using netscape enterprise
    Server can u clarify some of the doubts
1.  where should i put javax and sun packages also my own classes that i had
written
    in Server  so that i can compile my servlets.java(kept in directory
/plugins/java/servlets/)
    files directly so that resulting *.class files remain directory

2. in my servlet i want to read from a .html file and write in to browser


import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class ShowServlet extends HttpServlet {
public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
    {
        res.setContentType("text/plain");
        ServletOutputStream out = res.getOutputStream();
        out.println("akash");
    BufferedReader inp=null;
    String temp=new String();
    try{
   inp =new BufferedReader(new FileReader ("BrowserDataServlet.java"));/*
BrowserDataServlet.java is in same diectory*/
          }
      catch (FileNotFoundException e)
           { out.println(e.toString());
           }
          temp=inp.readLine();
          try{
            while(temp!=null)
           {         //       System.out.println(temp);
             out.println(temp);
             temp=inp.readLine();
           }
          }
   catch(Exception e)
    {}
   }
}



but the servlet is giving FileNotFoundException . even if i m giving
absolute path
it is giving same exception

can u please help me out

Thanx in advance
akash

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to