This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41134
    
  45
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
 
wood burning stoves
 
subject: Where in deployment environment to put a class of an applet, a servlet and HTTP(applet-servlet comm)
 
Similar Threads
where should I put the serializable object class
Applet in web application (WAR)
JApplet converted to Web Start application
servlet mapping
submit html for via applet