Quickly deploying Web components - Try it out!
Overview
Here is a quick way to deploy Web components, such as servlets and JSP files. This is not recommended as an official development method. It is provided so that you can sample the product functionality.
In summary, deploy Web components quickly by dropping the individual files into the directory structure of the default application installed by the product. This procedure relies on the Invoker servlet provided by the product. This servlet, enabled by default, lets you access deployed servlets by classname.
For recommended methods of developing and deploying Web application components, see Using Web applications.
- If deploying a servlet, first compile your servlet.
- Copy the servlet or JSP class file into the directory of the default application.A servlet is placed in the directory:
install_root/installedApps/<cell>/DefaultApplication.ear/DefaultApplication.war/WEB-INF/classes.If your servlet has a package statement, then create a subdirectory in the above directory for each level in your package statement.
A JSP file is placed in the directory:
install_root/installedApps/<cell>/DefaultApplication.ear/DefaultApplication.war
- Open a browser window and request your servlet or JSP file. The URL is:
http://your_host_name:9080/servlet/class_namewhere class_name is the Java class implementing the servlet or JSP file.
Default Application
® WebSphere is a trademark of the IBM® Corporation in the United States, other countries, or both.
® IBM is a trademark of the IBM Corporation in the United States, other countries, or both.