Quickly deploying Web components - Try it out!

Why and when to perform this task

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.

Steps for this task

  1. If deploying a servlet, first compile your servlet.
  2. 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_name>/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_name>/DefaultApplication.ear/DefaultApplication.war

  3. Open a browser window and request your servlet or JSP file.
    The URL is:
     http://your_host_name:9080/servlet/class_name
    where class_name is the Java class implementing the servlet or JSP file.

Related reference
Default Application



Searchable topic ID:   tovr_quickstart
Last updated: Jun 21, 2007 4:55:42 PM CDT    WebSphere Application Server Network Deployment, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tovr_quickstart.html

Library | Support | Terms of Use | Feedback