|
INTERVIEW QUESTIONS
J2EE
SERVLET
DETAILS
Question: What is filter? Can filter be used as request or response?
Answer: A filter is a reusable piece of code that can transform the content of HTTP requests,responses, and header information. Filters do not generally create a response or respond to a request as servlets do, rather they modify or adapt the requests for a resource, and modify or adapt responses from a resource.
|
|
|
Category |
Servlet Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 8276 users |
Added on |
9/14/2014 |
Views |
69030 |
Rate it! |
|
|
Question:
What is filter? Can filter be used as request or response?
Answer:
A filter is a reusable piece of code that can transform the content of HTTP requests,responses, and header information. Filters do not generally create a response or respond to a request as servlets do, rather they modify or adapt the requests for a resource, and modify or adapt responses from a resource. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
If a servlet is not properly initialized, what exception may be thrown?
|
View Answer
|
|
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
|
View Answer
|
|
What is servlet container?
|
View Answer
|
|
Why is Servlet so popular?
|
View Answer
|
|
How many times instantiation phase executed in Servlets?Explain briefly.
|
View Answer
|
|
Apart from context param , is there any other way to set/declare the global variable to access over the application?
|
View Answer
|
|
5.we have two servlets A,B .one jsp. A does not authorised to access that jsp. B have authorisation toaccess to that jsp.But A does not know that B has authorisation.So howyou access the jsp from A.
|
View Answer
|
|
What is the servlet?
|
View Answer
|
|
Difference between application server and web sever?
|
View Answer
|
|
What is the difference between servlets and jsp?
|
View Answer
|
|
how do you compile servlet program?
|
View Answer
|
|
Why init is used and not constructor for servlets initialization?
|
View Answer
|
|
How can we refresh the servlet for every 2 minutes automatically?
|
View Answer
|
|
What is servlet ,what is the use of it?
|
View Answer
|
|
How can a web container know whether cookies are accepted or not accepted by the browser
|
View Answer
|
|
What is pure servlet?
|
View Answer
|
|
What is the diff b/w doGet() and service() method?
|
View Answer
|
|
When destroy method get call, will it call for each user please give the ans in detail?
|
View Answer
|
|
Can we use any other technology than JSP to construct a view ?
|
View Answer
|
|
When we are saving form bean ,What is the difference between session scope and request scope.
|
View Answer
|