I am using WebSphere. Where exactly should I place my HTML files and servlet class files and how do I access these files from the browser?
Created May 4, 2012
Your HTML and JSP pages will be placed in the root folder of the web server (or virtual server), or one of its subdirectories:
Apache:
<apache install path>/htdocs
IIS:
<some path>wwwroot
(If you are using virtual servers under IIS, you should realize that each virtual server must be configured to use WebSphere individually)
Your compiled servlet classes typically go in the "servlets" subdirectory of the WebSphere installation directory. It is important to point out that this directory is "reloadable", meaning any classes in this directory may be dynamically reloaded if they are modified.
The alternative is to place your classes in the "classes" subdirectory, or within the system classpath. In this case, your classes are not subject to dynamic reloading, and the servlet engine must be restarted for any changes to take effect.