pro_java_server thread: Problem about the Applet Servlet Communication...
Find out what communication method talking between applet-servlet.
if http protocol then you have to load the applet in the internet explorer,
where you point to http://localhost:8080/applet.html this should load your
applet.
Also, when finding out what your server address, by using getCodeBase()
rather then localhost. .e.g. URL url = new URL(getCodeBase(),
"/servlet/DbApplet");
this way when you have to test in a remote system, it still work...I got
trape using localhost in the applet code, and spend ages trying to figure it
out, it is not easyly debug, esspecially when it is compile into *.class
files.
Cheers,
----- Original Message -----
From: "aseem" <aseem@o...>
To: "Java Server" <pro_java_server@p...>
Sent: Wednesday, August 16, 2000 11:10 AM
Subject: Problem about the Applet Servlet Communication...
>
> hi guys!
>
> If any one can help me...
>
> I am running the example of Applet Servlet Communication given in
> chapter 11 of Professional Java Server Programming and i have downloaded
the code from the wrox.com Site,but
> every time i run the applet it gives me an exception
> java.io.FileNotFoundException: http://localhost:8080/servlet/DbServlet.
> well i am using the command at the dos prompt c:\>servletrunner -d
> c:\appletservlet and all the files are stored in the directory
> appletservlet, of which i am mentioning the path in the servletunner, so
> please if any body can help me out , otr suggest me some other example
> based on the sevlet applet communicatin so that i can try this out
> simply, well my aim is that i want it connected to the database and that
> can be done only when i get the applet servlet communication right.
>
> Any positive response will be appreciated..
>
> Regards
> Aseem
>