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 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -