GeeCON Prague 2014*
The moose likes Applets and the fly likes Where in deployment environment to put a class of an applet, a servlet and HTTP(applet-servlet comm) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "Where in deployment environment to put a class of an applet, a servlet and HTTP(applet-servlet comm)" Watch "Where in deployment environment to put a class of an applet, a servlet and HTTP(applet-servlet comm)" New topic
Author

Where in deployment environment to put a class of an applet, a servlet and HTTP(applet-servlet comm)

Pira Tomatsu
Greenhorn

Joined: Sep 01, 2009
Posts: 14
I have read Java Servlet Programming and there is an example about applet-servlet communication. There are three classes in this example. One for an applet, one for a Servlet and one for HTTP(applet-servlet communication). HTTP class is imported in an applet class.

The question is " Which directory in the deployment environment I have to put there 3 classes ?".
Thank you in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42035
    
  64
The applet class goes into a directory where it can be accessed by the browser; the best choice would be the directory where the HTML file having the applet tag is in. The HTTP class also goes into this directory.

The servlet class goes into the WEB-INF/classes directory.


Ping & DNS - my free Android networking tools app
 
GeeCON Prague 2014
 
subject: Where in deployment environment to put a class of an applet, a servlet and HTTP(applet-servlet comm)