web.xml exclusive url-pattern

269 Views Asked by At

I want to restrict access to the whole application <url-pattern>/*</url-pattern> But not to some Servlets. They should be public.

Is there a way to do that easily (I imagine some exclusion or maybe overriding?) or do I have to arrange files in subfolders and allow access to one while restricting to the other?

1

There are 1 best solutions below

0
On BEST ANSWER

Is there a way to do that easily (I imagine some exclusion or maybe overriding?)

No.


or do I have to arrange files in subfolders and allow access to one while restricting to the other?

Yes.