Create a folder in the webapps directory.

<Tomcat>/webapps/my_webapp

The name of the folder will be the name of the web application.

Now in this folder add a html file. Call it something like hello.html. Here is a simple example:

<html>

<head>

</head>

<body>

<h3>Hello students</h3>

</body>

</html>

Now enter the url to this file into your browser. Eg.

http://localhost/my_webapp/hello.html

You should see something like:

tc4

You can now host static html content.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s