0

What method/class from a java servlet filter can I use to intercept/modify all HTML traffic before it get's displayed by the any web browser? I have tried searching for this online but all I got was a bunch of info about how a servlet filter can intercept a servlet, a JSP or a Static File but nothing about intercepting all HTML traffic before a browser sees it.

GregS
  • 1
  • 1

1 Answers1

0

You can create a chain of filters. The last filter in the chain will be executed right before the response is sent back.

What is the use of filter and chain in servlet?

Community
  • 1
  • 1
Sinan Gedik
  • 92
  • 2
  • 7
  • Link is broken. This should be the one: https://stackoverflow.com/questions/4122870/what-is-the-use-of-filter-and-chain-in-servlet – Sergei Wallace Nov 02 '16 at 19:00