This project demonstrates how to run a basic embedded Tomcat server and create a servlet that dynamically greets a user based on the userName parameter passed in the URL.
- Embedded Apache Tomcat 11.0.3 server.
- Servlet that handles HTTP requests and generates a personalized greeting.
- Accepts a
userNameparameter from the URL to display a dynamic greeting.
- App.java: Main class to start the embedded Tomcat server.
- HelloServlet.java: Servlet that handles HTTP requests and displays dynamic greetings.
- Apache Tomcat 11.0.3 (embedded)
- Jakarta Servlet API
URL: http://localhost:2025/hello?userName=Kareem
Output: Hello Kareem!