Create and Run your application on TOMCAT.
Step1
Create directory structure :
Create directory e.g "mywebapp"
and subdirectory "WEB-INF"
cd "WEB-INF"
create web.xml
content :
==============================================
Step 2
in Root directory ("mywebapp")
create index.jsp
=========================================================
Step 3: Creat a WAR file : to package this web application into a war file
naviagte to "mywebapp" and execute the this command.
jar -cvf mywebapp.war mywebapp
cp mywebapp.war /opt/tomcat/webapps/ (warfile)
cp -r mywebapp /opt/tomcat/webapps/ (folder)
now naviate to cd/opt/tomcat/webapps
cd mywebapp : you will see more file...
==============================================================
Stpe 4 :
now access the applicationn : https://localhost:8080/mywebapp