At 10:36 AM 22/11/99 +0800, you wrote:
Hello Everybody,
     I am trying to pass some data from client side to server through applet-servlet communication. But I am unable to develop the connection between them. I've seen examples/books on this issue and everything seems to be fine.
The interesting thing is that when I access the Servlet URL  directly with the browser, I succeed in entering the doPost method. But when i open the same URL with the applet, I get the following result on the server side

If you are calling the URL like

        http://www.myhost.com/servlet/MyServlet?name=value&name2=value2

then this is a doGet method of calling the servlet ... not a doPost. Easiest solution
is for your servlet code to have

        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
                doPost(request, response);
        }
        


1-  a NullPointerException on the "ServletFactory"
2- a Connection refused error on the "Weblogic"

It seems that applet-call is not even entering the doPost() method of the Servlet.

I'll highly appreciate if somebody could help me with that.


Thanks in advance,

Rashid.


--
Subvert the dominant paradigm
http://www.cyber4.org/members/grumpy/index.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to