i wonder if there’s a way to enable or disable servlets (or at least mappings for servlets) other than web.xml. I have multiple kinds of servers which use the same web.xml (i can’t change this) so this is why another way of enabling/disabling servlets would be useful.
Thanks,
Teo
You could use
@WebServletannotation with servlet 3.0 onwards, not sure if this will work for your requirement, please comment if this isn’t the way you want to