Right click the mouse on created web project and select New -> Servlet from the menu.
ServletPluggability
\ServletPluggability\src
my.web
WebfragmentFilter
WebfragmentFilter
Select a class name, WebfragmentFilter, and a package name, my.web, for the Servlet. After this press the Next Button.
WebfragmentFilter
/WebfragmentFilter
In this window, it is intended to set up deployment descriptor data for the Servlet.
Let the name and URL mapping be as proposed and press Finish button
You are now ready to change the servlet class to your needs.