Mark,
I had the same problem before. Then I had to have the servlet response a
message (say, "stuff received") and the applet to capture the servlet
response. The following codes are in my applet's submit function.
Hope this helps
J.H
url = http://myserver/servlet/accept
URLConnection conn = null;
conn = (URLConnection) (url.openConnection());
conn.setDoOutput(true);
conn.setUseCaches(false);
// out. ... submit the stuff to the server
out.close();
///* I have to have the folling codes to servlet function
properly
InputStream in = conn.getInputStream();
BufferedReader br = new BufferedReader(new
InputStreamReader(in));
while((strSee=br.readLine())!=null)
{
System.out.println(strSee);
}
-----Original Message-----
From: Mark Lintner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 13, 2000 11:03 PM
To: [EMAIL PROTECTED]
Subject: applet to servlet communication with tomcat
I have written a prototype applet which whould locate a servlet by url.
It apparently resolves the url because it goes through my send code
including a write of an object on the ObjectOutputStream to the servlet
and finally a close without throwing an exception. I can cause an
exception if I change the url and run it. Somehow the servlet is
unaffected by the message. I expected control to first go to the service
method. Are there other issues involved that would keep this from
working?
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets