I created a
ServletContextListener
and annotated it. In the contextInitialized()
method, I set the servlet name, its class, and a mapping and we are done.
We can then deploy the project and watch the magic. Here is the Apache Maven project: dynamic-servlet.zip
No comments:
Post a Comment