I can't unzip your code for some reason however I'm taking a wild guess here
(not having read the book or seen the code):
Did you sign your applet and get your browser to trust the identity in the
certificate you signed it with?
If not, this is a security issue (in any case, use the Java Console in IE to
see the stack trace...I assume you're printing a stack trace...;-). You
need to sign your applet and import the certificate you used into IE. Look
at the docs for keytool and Sun's documentation on developer.java.sun.com on
how to sign things. If you serve up your applet from the same place your
servlet comes from, this requirement goes away (do a search on "sandbox" on
developer.java.sun.com if this sounds very new to you).
Simon
> Subject: Chap11-Applet-servlet communication problems
> From: Yau Mei Ling <meilingyau@y...>
> Date: Wed, 6 Dec 2000 01:25:48 -0800 (PST)
> X-Message-Number: 1
>
> --0-1846329646-976094748=:3900
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
>
> Hi,
>
> I'm using the Profesional java server programming book
> and I got some problems regarding chapter 11-servlet
> communication.
>
> I'm working on applet calling servlet. The problems is
> the applet cannot work -- cannot invoke the servlet.
> Before that, I try to use frame application instead of
> applet to call the servlet. It's worked fine, servlet
> can be invoke. Then I modify the code using applet to
> call the servlet, refering chapter 11 on how to call
> servlet from an applet and how to invoke the applet on
> HTML page. The applet can ce load on the IE browser,
> but when I press the "Send" button, nothing happend.
> I don't know what is the problem is as It can be work
> when using frame. The code have been modify to suite
> the applet syntax, why can't it work? I attach the
> code of the applet, servlet and html code here, could
> anyone of u here try to look at it and give some
> advise to me why can't it work?
>
> Here is some explanation of the task:
> This is a applet from one webserver calling a servlet
> on another webserver, which means different location.
> The intension is to send a document from A to B.
> Applet from A sent the url of document from A to
> servlet at B. The servlet get the url and use the
> URLConnection to get the document from A.