can anybody give me a clue why I get the following exception from my
servlet included in a jhtml file? As far as I can see I dont call
getOutputStream.

Thanks for any help.

Snorre


<!-- java.lang.IllegalStateException: Already called getOutputStream.
        at
org.apache.jserv.JServConnection.getWriter(JServConnection.java:1432)
        at Hello.doGet(Hello.java:31)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
org.apache.jservssi.ServletInfoRequest.runServlet(JServSSI.java:917)
        at org.apache.jservssi.JServSSI.interpretPage(JServSSI.java:366)
        at org.apache.jservssi.JServSSI.doGet(JServSSI.java:302)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at org.apache.jserv.JServConnection.run(JServConnection.java:359)
        at java.lang.Thread.run(Thread.java)
-->
--------------------------------------------
The servlet sourcecode is as follows:

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Hello extends HttpServlet
{ 
    public void doGet (HttpServletRequest request,
                       HttpServletResponse response) 
        throws ServletException, IOException
        {
            PrintWriter out;
            String title = "Example Apache JServ Servlet";
            response.setContentType("text/html");
            out = response.getWriter();
            out.println("I Rule");
            out.close();
        }
}
----------------------------------------
The jhtml file is as follows:

<html>
oisann
</br>
<servlet CODE="Hello">
oioi, her er det galt fatt
</servlet>
hm
</html>



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to