what is servlet filter?
Answers were Sorted based on User's Feedback
Answer / dileep
In http servlet contains doget,dopost methods etc and it
takes two parameters only namely as
HttpServletRequest,HttpServletResponse and in Filter
concept contain one method has doFilter method .it takes 3
parameters namely as
HttpServletRequest,HttpServletResponse,FilterChain.the
Filter chain is use to convert one filter to another filter
Filters are mainly used for filtering the components and we
can do any modifications using Filters.
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / jeh
Filter is a web component for web based applications. It
intercepts the request before calling service method and
process the response after executing the service method.
Filter mainly validates the client submitted data
| Is This Answer Correct ? | 2 Yes | 2 No |
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
Write a java program to get a string of words and print the numbers of each word count in descending order
What is the use of ?this??
explain multi-threading in java?
What does it mean to flush a file?
Is oracle charging for java?
What is meant by Session? Explain something about HTTP Session Class?
I don’t want my class to be inherited by any other class. What should I do?
Can we have any code between try and catch blocks?
What are the differences between heap and stack memory in java?
public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }
List some important characteristics on jre