jsp - Can you package a WebFilter into a library -


and if how do it?.

yes sounds last question. , same problem. have @javax.servlet.annotation.webfilter works fine when packaged directly war. move filter in library. if won't called more.

any pitfalls have out or plain impossible?

set <web-app metadata-complete="false">.

this means metadata web application not limited particular xml (and classes of webapp), can use metadata 3rd party libraries.

also take @ "web fragments". can define web-fragment.xml in meta-inf of jar, , map servlets , filters there.

take @ demo.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -