You can use this for example
                        java.io.BufferedReader in =
                                new java.io.BufferedReader(new
java.io.FileReader("c:\\odd_directory\\web\\templates\\page.html"));
                        do {
                                Riga = in.readLine();
                                if (Riga == null) {
                                        in.close();
                                        break;
                                }
                                ContenutoFile = ContenutoFile + Riga +
"\n";
                        } while (true);
Hope that it can be help you.
Regards
Rinaldo
[EMAIL PROTECTED]

-----Messaggio originale-----
Da: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]] Per conto di
wilbert moore
Inviato: gioved� 7 marzo 2002 21.22
A: [EMAIL PROTECTED]
Oggetto: 


What I'm trying to do is probably pretty simple.
Its pretty easy to do in VB/ASP so I know this
will be a breeze for someone to answer.

My servlet is to read in an html file's contents which is sitting in a
folder under the main server's root. Since I have not yet been
successful in configuring tomcat to work under apache's control, my
servlet is at http://localhost:8080/servletname

If my html file is at http://localhost:80/page.html, what is the call I
need to make to find the raw directory (eg.
c:\odd_directory\web\templates\ )

I could obviously code this in hard, which I did to test so far,
however, if the app were moved, this would not work.

Thanks for the help, and I hope I supplied enough info for this simple
task.



__________________________________________
Launch your own web site Today!
Create a Web site for your family,
friends, photos, or a special event.
Visit: http://www.namezero.com/sitebuilder

________________________________________________________________________
___
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

___________________________________________________________________________
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