mercredi 7 février 2018

Configuring servlet url-patterns without web.xml

I know this can be done in servlet 3.0 with the @Webservlet annotation where you just assign the url-patterns and not have to do any configurations within a web.xml. Is there a way to programmatically assign a servlets url-pattern for applications running servlet 2.5?

I am creating a library which multiple applications will depend on and trying to make it so each of these applications do not have to explicitly configure any servlet url mappings for the servlets in the library I am creating within their respective web.xml file.

Thanks,

Aucun commentaire:

Enregistrer un commentaire