Hi,
First you need to recompile java files with 1.1 version compiler, since 1.2
is not suported by current browsers (at list it was the case last year),
only appletviewer supports 1.2.
If applet , still, doesn't work, put mouse over the applet area to see what
Exception is shown in status bar.
If Exception is related to different types of java permissions then you
need to write java.policy file and grant those permissions and put this file
into directory C:\jdk1.2.2\jre\lib\security (there are some similar
options). To see how this works go to Sun's Java tutorial.
If Exception is related to JDBC then you need to set class paths properly on
server host machine.
Anyway, it's nice to have one TextArea ,for debugg purpose,within the applet
and insted sending debugging info to System.out you simply append those
error messages and exceptions to text area. So if anything happend during
runtime, you are informed what's the problem.
As long as you use Java 1.1 classes for the applet and grant requested
permissions to your code , you shouldn't have problem running the applet.
good luck,
LjubisaK
----- Original Message -----
From: Phil Perks <philp@w...>
Newsgroups: pro_java_server
To: Java Server <pro_java_server@p...>
Sent: Tuesday, August 29, 2000 4:44 AM
Subject: Professional Java Server Programming - 2777 Page 233
> ----Original Message-----
> From: Weissmann Ingo ZFF IE-F [mailto:Ingo.Weissmann@z...]
> Sent: 28 August 2000 09:11
> To: 'support@w...'
> Subject: Professional Java Server Programming - 2777 Page 233
>
> > Hello,
> >
> > I hope you are not angry about this 'direct' request, but I tried to
> > get answers from http://forum.java.sun.com/list/discuss.sun.awt
> > but it seems nobody knows about servlet-applet communication.
> >
> > Here what I did:
> > I coded an servlet with database access in the way you does in
> > the "JavaServerProgramming" book except the doGet() method.
> > Instead I used do Post(). I tested it and it works fine!
> >
> > Well, I implemented an applet with some TextFields, Choice
> > fields and Buttons. I tested the 'GUI-Applet' in InternetExplorer 5
> > and Appletviewer and I could navigate with the buttons and the
> > init data was shown.
> >
> > Next step was coding the communication between applet and
> > servlet. Within the applet I used an URLConnection the same
> > way you does.
> >
> > The servlet and applet is used to run within our company Intranet.
> >
> > Here the problem:
> > I tried the communication with Internet Explorer 5 and nothing
> > happened. I tried with appletviewer and it worked fine!!!
> >
> > I use JDK 1.2.2, Windows NT 4, JSDK 2.1
> >
> > Do you know what I have to do to solve this problem? Do I have
> > to sign the applet? When yes, how?
> >
> >
> > Thanks a lot,
> > Ingo Weissmann
>
> ---
> Do you know what you want from this list? How would you provide
programmers with the solutions they need? If you have the answers, and are
willing to work in Birmingham (UK), then you could be a List Manager. Please
send CVs and a covering letter to listsupport@p... for further
information.
$subst('Email.Unsub')
>