I created Servlet class and configured web.xml as
<servlet>
<description></description>
<display-name>ExampleServlet</display-name>
<servlet-name>ExampleServlet</servlet-name>
<servlet-class>com.example.ExampleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ExampleServlet</servlet-name>
<url-pattern>/example/one</url-pattern>
</servlet-mapping>
When I check the url "http://localhost:8080/example/one" I get 404 not found. However when I use only /example, it does work. How can I use a mapping like "/example/one".