Theo,
 
   See server configuration settings. Make sure that the an alias path for the *.html pages is available in the settings. 
 
   To test type the same URL in the browser so that the server sttings are done for the JWS on your server.
 
thanx
venkat 
-----Original Message-----
From: �������� ��������� <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, April 28, 1999 9:51 AM
Subject: Use res.sendRedirect or link to open a html file from servlet?

Hi,
I'm trying to open a simple .html file from a servlet that is running on JWS. I'm using this piece if code:
        res.sendRedirect("http://localhost:8080/mydirectory/Welcome.html");

but I get a Not Found (404) error from the browser, even if there is the folowing path on the disk:    JavaWebServer1.1.3\mydirectory\Welcome.html
Do I have to place    mydirectory\Welcome.html elsewhere relative to the JavaWebServer1.1.3 directory?
 
I have the same problem when I use this piece of code as well:
      out.println("<HR><A HREF=../mydirectory/Welcome.html>Go Home</A><HR>");
When I click to the link I get the same error.
 
Theo
  • ... Θεόδωρος Κυριμαλής
    • ... Danny Ayers
    • ... Chris Pratt
    • Venkat R apsumarthi

Reply via email to