W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1998

Servlets problem in IE4 only

From: Roman Dusek <dusek@kolej.mff.cuni.cz>
Date: Tue, 02 Jun 1998 00:22:47 +0200
Message-Id: <199806012222.AAA08691@mail.kolej.mff.cuni.cz>
To: Jigsaw conference <www-jigsaw@w3.org>
Hi,
I've got a strange problem with servlet invoking by SSI. I've written a
very simple servlet:

---------------------------------
import java.io.*;
import javax.servlet.*;

public class TestServlet extends GenericServlet  {

public void service(ServletRequest req, ServletResponse res) 
     throws ServletException, IOException {

	System.out.println("TestServlet started.");
	PrintStream out = new PrintStream(res.getOutputStream());
	out.println("Hello World!");
	System.out.println("TestServlet finished.");
 }

 public String getServletInfo() {
   return "Hello World Servlet";
 }
}
-----------------------------------

and successfully installed it in /servlets/TestServlet. I have no problem
to access it directly (http://localhost/servlets/TestServlet). I've also
written a html file that tries to invoke it by SSI call:

-----------------------------------
<body>
<hr>
<!--#servlet name="TestServlet" code="/servlety/TestServlet" -->
<hr>
</body>
----------------------------------

- the strange thing is, that this resource (of course I've got an SSIFrame
attached to it) works with no problem in Netscape v. 3 and 4, but it
doesn't work in Internet Explorer 4 - I am getting one of the following
message boxes:

"Internet Explorer cannot open the Internet site http://localhost/test.shtml.
The downloaded file is not available. This could be due to your Security or
Language settings or because the server was unable to receive the requested
file"

OR

"Internet Explorer cannot open the Internet site http://localhost/test.shtml.
An internal error occured in the Windows Internet extensions."

I tried to change the extension of "test.shtml" to "test.html", but the
result was still the same. Maybe another important thing is that Jigsaw
doesn't show any error (even in its trace mode).

Does anybody know what could be the problem?

Thanks, 
R. Dusek
 	
Received on Monday, 1 June 1998 18:22:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:27 GMT