Introduction
In this project, you will learn how to display a proverb on a web page using Java Web technology. The proverb we will display is "Actions speak louder than words".
👀 Preview

🎯 Tasks
In this project, you will learn:
- How to display the provided proverb on a web page
- How to start a web application and view the proverb in a web browser
🏆 Achievements
After completing this project, you will be able to:
- Create a simple JSP (Java Server Pages) file to display content on a web page
- Start a web application using the Tomcat server and deploy your web application
- Access and view your web application in a web browser
Display the Proverb
In this step, you will learn how to display the proverb "Actions speak louder than words" on a web page.
- Open the
index.jspfile located in theQuotaWebProject/src/main/webapp/directory. - Inside the
<body>section, add the following code to display the proverb:
<p>Actions speak louder than words</p>
Your index.jsp file should now look like this:
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<body>
<p>Actions speak louder than words</p>
</body>
</html>
Start the Web Application
In this step, you will learn how to start the web application and view the proverb on the browser.
- Open a terminal and navigate to the
QuotaWebProjectdirectory using the following command:
cd ~/project/QuotaWebProject/
- Run the following command to start the web application:
mvn clean tomcat7:run
This command will start the Tomcat server and deploy your web application.
- Once the server is running, open a web browser and go to
http://localhost:8080. You should see the proverb "Actions speak louder than words" displayed on the page.
Congratulations! You have successfully displayed the proverb on a web page using Java Web technology.
Summary
Congratulations! You have completed this project. You can practice more labs in LabEx to improve your skills.



