difference between servletconfig and servletcontext in java
ServletConfig is implemented by the servlet container to initialize a single servlet using init().
ServletContext is implemented by the servlet container for all servlet to communicate with its servlet container, for example, to get the MIME type of a file, to get dispatch requests, or to write to a log file.
View Answers
December 9, 2011 at 12:55 AM
ServletConfig is implemented by the servlet container to initialize a single servlet using init().
ServletContext is implemented by the servlet container for all servlet to communicate with its servlet container, for example, to get the MIME type of a file, to get dispatch requests, or to write to a log file.
NI3 P
December 9, 2011 at 11:36 AM
ServletContext : Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.The ServletContext object is contained within the ServletConfig object, which the Web server provides the servlet when the servlet is initialized .
ServletConfig : The object created after a servlet is instantiated and its default constructor is read. It is created to pass initialization information to the servlet.
Ads
Related Tutorials/Questions & Answers:
Advertisements
Difference Between ServletConfig And ServletContext
Difference Between ServletConfig And
ServletContext
Here we will see how the
ServletConfig And
ServletContext are different from
each other. Most... will demonstrate you the
difference between
ServletContext and
ServletConfig
web.xml
difference between wite and writeto in java
difference between wite and writeto in java I am using the stream... the writeTo() method. I want to know
difference between the write() and writeTo() method in
java.
The writeTo() method writes the complete contents
In Java, what's the difference between public, default, protected, and private?
In
Java, what's the
difference between public, default, protected, and private? In
Java, what's the
difference between public, default, protected, and private
Difference between Timer and Thread?
Difference between Timer and Thread? Can anyone tell me about the
difference between Timer and Thread, Why we need to have Timer in case we have Thread implimentation startegy in
Java
Hi .Difference between two Dates - Java Beginners
Hi .
Difference between two Dates Hi Friend....
Thanks for ur Very good response..
Can u plz guide me the following Program....
difference between two dates..
I need to display the number of days by Each Month
difference between lock and synchronization
difference between lock and synchronization Hi,
I am new in
java please anyone tell me
difference between lock and synchronization in
java.
its urgent.
Thank in advance
Please visit the following link:
Lock
Difference between SCJP Exams
Difference between SCJP Exams What is the differences
between SCJP 5 (310 - 055) exam and SCJP 6 (310 - 065) exam???
Thank You In Adv
Difference between error and exception ????????
Difference between error and exception ? Can we handle a error in
java if yes than give an code of an example?
Difference between error and exception handling.......
Exceptions are things you can create/throw
Difference between http and https
Difference between http and https
Difference b/w HTTP and HTTPS
please provide answer in tabular form.
Hi Friend,
Differences:
1)HTTP is hyper text transfer protocol which is responsible for transmitting
What is the difference between a JDK and a JVM?
What is the
difference between a JDK and a JVM? Hi,
What is the
difference between a JDK and a JVM?
Thanks,
Hi,
JDK is stand... to compile your source files using a JVM.
For more
difference between JDK and JVM
Difference between Struts and Spring
Difference between Struts and Spring What are the
difference between Struts and Spring?
Hi Friend,
Differences:
1)Struts is a web framework while Spring is not.
2)Spring is a Layered Architecture while Struts