Servlet Maven Configuration Example

Maven is the Project Management Tool, that help developers to built the project easily (make create, add, update, compile, testing and deploy work easy).

  You can download Maven from Official Site

You can find servlet dependency file here

Here we will start a new project with maven

Project Explorer

Maven Project Structure

index.jsp

This Jsp page contains a text box and submit button.

On click on submit form will submit to PersonServlet action.

PersonServlet.java

pom.xml

Result

Servlet Maven example
Servlet Maven Response Page