?
Solved

Filters

Posted on 2005-03-05
2
Medium Priority
?
232 Views
Last Modified: 2010-03-31
From a mock exam
Which about Filters is true


A. Filters may be used to create request and response wrappers.
B. Wrappers may be used to create request or reponse filters

Correct ans given is A.
Is it correct?
I guess wrappers are used in filters shouldn't it be B.

0
Comment
Question by:thomas908
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
lhankins earned 400 total points
ID: 13467868
yes,A is correct.

A filter acts as an interceptor to incoming HttpRequests.   You declare the filter in the web.xml and then also provide entries there which say which url patterns the filter will be applied to.

Common uses :

- SecurityFilter (ensure the request is coming from an authenticated user, if not redirect to login page)
- CompressionFilter (buffer the response, and encode with gzip compression)
- Etc.



0
 
LVL 8

Author Comment

by:thomas908
ID: 13474918
Thanks  lhankins

0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question