-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

The doctype header make be added because you extended HttpServlet.  Have you tried 
extending Servlet and generating your JavaScript from service()?

Just a thought


Aaron Schinkowitch
Sr. Engineer
Web-X LLC
[EMAIL PROTECTED]
http://www.web-x.com

>>> <[EMAIL PROTECTED]> 09/20/99 11:36PM >>>

My servlet code is as follows :

import java.io.*;
import java.net.*;
import java.util.*;
import java.lang.reflect.*;

import javax.servlet.*;
import javax.servlet.http.*;

public class MyServlet extends HttpServlet {

    public String getServletInfo() {
        return "MyServlet 1.0 by Ramesh";
    }

    public void doGet(HttpServletRequest req, HttpServletResponse res) 
                                throws IOException {

       MyServletBackend backend = new MyServletBackend();
       backend.doGet(req, res);

    }
}



That's all is in the servlet.  For simplicity, I put everything else in 
MyServletBackend to workaround 
concurrency problems though there is a better way
using  "sychronized"

If I use MyServletBackend directly, this error doesn't
come, however, I face multi threading issues.

Thanks all for your help. I am heading in the
right direction.

Ramesh




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED] 
To unsubscribe:      [EMAIL PROTECTED] 
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED] 




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to