Intercepting Filter PatternAn Intercepting Filter Pattern says that "if you want to intercept and manipulate a request and response before and after the request is processed". Usage:
Benefits:
UML for Intercepting Filter Pattern:Implementation of Intercepting Filter Pattern:Step 1 Create a Login.html web page. Step 2 Create a LoginServlet class. Step 3 Create a LoginSuccess.jsp page. Step 4 Create an AdminPage.jsp page. Step 5 Create an LogoutServlet class. Step 6 Create an AuthenticationFilter class. Step 7 Create an RequestLoggingFilter class. Step 8 Create a web.xml file. Output: Next TopicFront Controller Pattern |