Is it possible to have a NOT condition as a value for url-mapping for a servlet filter? Example: I want to filter out all queries that do not contain "." so let's consider that I have a request, for example, www.website.com/pages. It does not contain a "." or ".html", so I want to filter out all such a request.
No, It is Immpossible. You can add this condition to your filter and only do it chain.doFilter(req, resp)(i.e. skip the filter).
chain.doFilter(req, resp)
Source: https://habr.com/ru/post/1780991/More articles:Sphere ray tracing with offset mapping - geometryΠΠ»ΠΈΠ½Π½ΡΠΉ ΠΊΠ»ΠΈΠΊ ΠΏΠΎ Π½Π°ΠΆΠ°ΡΠΈΡ ΠΊΠ½ΠΎΠΏΠΊΠΈ Π½Π° ΠΊΠ½ΠΎΠΏΠΊΠ΅ - androidHow to instantiate if inner class with getConstructor () - javahow to remove an item from a list in android - androidWPF: how to create complex user controls? (for example, GDI +) - c #prime_factorize (1) ->? (Π‘ΠΈΠ³Π½Π°Π»ΠΈΠ·Π°ΡΠΈΡ ΠΎΡΠΈΠ±ΠΎΠΊ Pythonic) - pythonJAVA - Android error: application stopped unexpectedly, try again - androidΠΡΡΡ Π»ΠΈ ΠΈΠ½ΡΡΡΡΠΌΠ΅Π½Ρ Π² Visual Studio ΠΈΠ»ΠΈ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ°Π΅ΠΌΡΠΉ ΠΌΠΎΠ΄ΡΠ»Ρ Π΄Π»Ρ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΠ·Π°ΡΠΈΠΈ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ ΠΏΡΠΎΠ²Π΅ΡΠΊΠΈ ΠΊΠ»Π°ΡΡΠ° Π΄ΡΡΠΆΠ±Ρ? - asp.netBlock / Unblock CommandLine IP Block in Windows Firewall with Advanced Security - c #What does the SQueryL tilde operator do? - scalaAll Articles