what is the diff between Servletcontext and servletconfig?
Answer Posted / srinivasa
Every web application has only one SContext object.
There are n number of SConfig objects in an Web app where
n is the number of servlets. It is specific to a servelt.
ServletContext is used to get the context parameters.
ServletConfig is used to get to the init parameters.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How many threads can java run?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
What are java packages? What's the significance of packages?
Why arraylist is used in java?
What are byte codes?
What is the difference between post and put?
What are drawbacks of singleton class?
Is arraylist a class in java?
How many types of equations are there?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
If goto and const is reserve words than why it is not work in java?
Why does java doesnt suuport unsigned values?
What is scope & storage allocation of static, local and register variables? Explain with an example.
How to write custom exception in java?
What is the indent key?