- Inha Univ. CSE2104 Web Project
- Created by Jaeah Lee
If you just want to view the HTML file without deploying it to Tomcat, open it directly in your browser:
file:///path-to-project/index.html
To deploy MyNotepad on Apache Tomcat, follow these steps:
-
Start the Tomcat Server
Ensure Tomcat is running before deployment. -
Create a WAR File
- Using Maven:
mvn clean package
- OR using Gradle:
gradle clean build
- The generated
.war
file will be in thetarget/
orbuild/libs/
directory.
- Using Maven:
-
Deploy the WAR File
- Navigate to Tomcat’s
webapps
directory:cd /path/to/tomcat/webapps
- Move the generated WAR file to the
webapps/
folder:mv /path/to/MyNotepad.war .
- Navigate to Tomcat’s
-
Verify Deployment
Tomcat will automatically extract and deploy the WAR file. -
Access the Web Application
Open your browser and visit:http://localhost:8080/MyWebApp/index.html