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