what is the diff between Servletcontext and servletconfig?
Answer Posted / srinu
servletcontext:
1) servletcontext object one for webapplication
2)it used global init parameters
3)with help servletcontext object we find our webserver
ingformation(public java.lang.String getServerInfo())
servletConfig:
1)servletConfig object will be created every servlet suppose
in my webapplication 10 servlets are their 10 servletConfig
object will be created but only one SwervletContext object
will be created
2) it is the righthand object of servlet
3)it used local init parameters
4)with help of servletConfig object we find out logical name
of servlet(public java.lang.String getServletName())
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is singletonlist in java?
what are abstract functions?
what are three ways in which a thread can enter the waiting state? : Java thread
What is byte value?
Discuss 2D arrays.
What are the 2 types of java programs?
define polymorphism in java
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
Differences between traditional programming language and object oriented programming language?
How do you check whether the list is empty or not in java?
Is java programming easy?
What is parsing a sentence?
What is passed by reference and pass by value ?
Does java linked list allow duplicates?
what is collatration?