Posted By:
Anonymous
Posted On:
Monday, November 5, 2001 06:14 AM
I'm not sure whether this query should go into the Applet, Servlet, or Tomcat Forum, so I've posted it here. I have implemented a client server Applet-Servlet communication structure, closely based on the excelent article by Chád Darby at http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html At first I wanted to use the GenericServlet class (as a learning excercise) and found that reading a stream from the Servlet worked fine, but writing a stream didn't work. The applet wrote the data to the OutputStream (connected to my servlet) but the servlet did not react. ie the service() routine was not even called. Thinking that there was some magical parameter that I was overlooking I resorted to the httpServle
More>>
I'm not sure whether this query should go into the Applet, Servlet, or Tomcat Forum, so I've posted it here.
I have implemented a client server Applet-Servlet communication structure, closely based on the excelent article by Chád Darby at http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html
At first I wanted to use the GenericServlet class (as a learning excercise) and found that reading a stream from the Servlet worked fine, but writing a stream didn't work. The applet wrote the data to the OutputStream (connected to my servlet) but the servlet did not react. ie the service() routine was not even called.
Thinking that there was some magical parameter that I was overlooking I resorted to the httpServlet class, and experienced the same thing.
That is that the doGet works, and the doPost is not even called.
I can't imagine that the information in the article is incorrect, since it seems to be the standard reference, so I must assume it is somewhere in my environment. Perhaps in the Tomcat setup?
I read a rumour here in one of the forums that data must be received from the applet, before it can be sent, but I had no joy there either.
Has anyone had a similar problem and already found a solution?
<<Less