Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying just HTML, CSS webpage to Tomcat

I am just getting started on developing a website. All I have at the moment is a HTML page supported by a couple of CSS stylesheets.

Can I create a WAR file from the HTML and CSS pages? How do I deploy them on to a Tomcat server?

Thanks.

like image 462
Van de Graff Avatar asked Oct 17 '10 18:10

Van de Graff


People also ask

Where are HTML files stored in Tomcat?

Folder where HTML documents are served from: C:\local\tomcat\webapps\ROOT\


1 Answers

There is no real need to create a war to run it from Tomcat. You can follow these steps

  1. Create a folder in webapps folder e.g. MyApp

  2. Put your html and css in that folder and name the html file, which you want to be the starting page for your application, index.html

  3. Start tomcat and point your browser to url "http://localhost:8080/MyApp". Your index.html page will pop up in the browser

like image 73
Gaurav Saxena Avatar answered Oct 03 '22 03:10

Gaurav Saxena