I need to understand how a web-server
applet identifies the target app-server
servlet that it needs to communicate with when the user clicks on a link in IE or Netscape.
For example, in the web-server, I have a class file with these codes :
According to Zukowski's "JAVA 2 J2SE1.4" , pg 203, the getCodeBase() method will "...load the images relative to where the browser loaded the applet's class file..." which in my case will take you to /com/developer under the web-browser's Apache default /var/www/html
Does this mean I always have to have exactly the same directory tree in the web-server as I do in the app-server ???
At this point, how does the applet resolve the placeholder "servlet", it hasn't got the parameter names yet. To get the names, you need to identify the servlet class file first ???
I believe the getParameter() method will get the values of the parameters in the <applet...> as follows...
I believe by inserting <param name=\"MrSpock\" ... > the web-server will be able to set the value of servlet.
But how does the applet in the web-server identifies the servlet class file in order to get to MrSpock ???
I am stuck with this chicken-n-egg conundrum - most probably because I do not understand the basic concept of applet-servlet communication.
Please enlighten me ...