How To Host A Simple Html Page in Tomcat
There is no need to create a war to run the html file from Tomcat. Follow steps can be used.
& open browser and browse to http://localhost:8080/yourhtml.html
- Create a folder in webapps folder e.g. MyApp
- Put html and css in that folder and name the html file, which you want to be the starting page for your application, index.html
- Start tomcat and point your browser to url "http://localhost:8080/MyApp". Your index.html page will pop up in the browser
& open browser and browse to http://localhost:8080/yourhtml.html
No comments:
Post a Comment