[ Team LiB ] Previous Section Next Section

Deploying an HTML Page

You can create a Web application by creating a new directory under applications; for example, /applications/DefaultWebApp/. The quickest way to view an HTML page is to place it in the root directory of the default Web application in your WebLogic Server installation. The following steps will guide you through the deployment of an HTML page:

  1. Start the administration server.

  2. Copy your HTML file into the default Web application directory of your WebLogic Server installation. For illustrative purposes, we'll name this HTML file foo.html. If you haven't done so already, create the directory c:/bea/user_projects/mydomain/applications/DefaultWebApp. We'll deploy our HTML file into this directory.

  3. Copy all of your supporting files, such as image or media files, into the /DefaultWebApp directory. You can create subdirectories (such as /images/mypic.gif) to handle any relative links.

  4. Deploy the Web application through the console.

  5. You can now view the HTML page in a Web browser by using the URL http://localhost:port/DefaultWebApp/foo.html.

    where

    localhost is the name of the WebLogic Server hosting the HTML page. If you deployed the HTML page on a remote machine, you would substitute the IP address or machine name of the other server for this name.

    port is the listening address for the server.

    foo.html is the name of the HTML file you copied to the server in step 2.

NOTE

If you've installed locally with the default options, you can use http://127.0.0.1:7001/DefaultWebApp/foo.html or http://localhost:7001/DefaultWebApp/foo.html as the URL.


    [ Team LiB ] Previous Section Next Section