ServletContext is a interface which helps us to communicate with the servlet container. There is only one ServletContext for the entire web application and the components of the web application can share it. The information in the ServletContext will be common to all the components. Remember that each servlet will have its own ServletConfig. The ServetContext is created by the container when the web application is deployed and after that only the context is available to each servlet in the web application.
ServletContext defines a set of methods that a servlet uses to communicate with its servlet container. ServletConfig is a servlet configuration object used by a servlet container used to pass information to a servlet during initialization. All of its initialization parameters can ONLY be set in deployment descriptor.
The ServletContext object is contained within the ServletConfig object, which the Web server provides the servlet when the servlet is initialized.
You can specify param-value pairs for ServletContext object in <context-param> tags in web.xml file.
The ServletConfig parameters are specified for a particular servlet and are unknown to other servlets.
The ServletContext parameters are specified for an entire application outside of any particular servlet and are available to all the servlets within that application
ServletContext is represents your web application,so there is only one sevletContext for your application.
For particular servlet in your application there is one ServletConfig so,if 10 servlets are there in your application then there are 10 ServletConfigs.
For more information on ServletContext and ServletConfig visit to :
servlets what is the duties of response object in servlets
what are advantages of servlets what are advantages of servlets
Please visit the following link:
Advantages Of Servlets
Servlets How to edit and delete a row from the existing table in servlets
servlets How do you communicate between the servlets?
We can communicate between servlets by using RequestDespatcher interface and servlet chaining
what is the architecture of a servlets package what is the architecture of a servlets package
The javax.servlet package provides interfaces and classes for writing servlets.
The Servlet Interface
Servlets How to check,whether the user is logged in or not in servlets to disply the home page
servlets why we require wrappers in servlets? what are its uses?
These wrappers classes help you to modify request...://www.roseindia.net/servlets/response-filte.shtml
Anyways, please visit the following links:
servlets How to open and read the contents of a text file in servlets?
Please visit the following link:
Read text file using Servlet
servlets servlets Hi
what is pre initialized servlets, how can we achives?
When servlet container is loaded, all the servlets defined in the web.xml file does not initialized by default. But the container receives
servlets servlets why do we need web-inf directory in web application why do we need web-inf directory in web application? means what's the benefits of doing so
Servlets and Servlets and Sir...! I want to insert or delete records form oracle based on the value of confirm box can you please give me the idea.... thanks
which are the differ ways you can communicat between servlets which are the differ ways you can communicat between servlets
Different ways of communicating between servlets:-
1)Using RequestDispatcher object.
what are sessions in servlets what are sessions in servlets
A Session refers to all the request that a single client makes to a server...:
package supports the development of servlets that use the HTTP protocol. The classes... javax.servlet.GenericServlet and serves as the base class for HTTP servlets. HttpServlet-Request
what is diff between generic servlets and httpservlets what is diff between generic servlets and httpservlets
Difference between GenericServlet and HTTPServlet:
1)GenericServlet belongs to javax.servlet package
regarding the user usage and habits. Servlets sends cookies to the browser client...://www.roseindia.net/jsp/jspcookies.shtml
servlets hi i am using servlets i have a problem in doing an application.
in my application i have html form, in which i have to insert on date value, this date value is retrieved as a request parameter in my servlet
servlets what are different authentication options available in servlets
There are four ways of authentication:-
HTTP basic authentication
HTTP digest authentication
HTTPS client authentication
what are filters in java servlets what are filters in java
Filters are powerful tools in servlet environment. Filters add certain functionality to the servlets apart from processing request and response paradigm
jsp -servlets i have servlets s1 in this servlets i have created emplooyee object, other servlets is s2, then how can we find employee information in s2 servlets
Servlets with Extjs Servlets with Extjs how to integrate servlets and extjs and also show database records in extjs grid using servlet how to get servlets json response. Can any one please help me
advantages of Servlets
advantages of Servlets What is advantages of Servlets ?
java servlets please help...
how to connect java servlets with mysql
i am using apache tomcat 5.5
servlets and struts servlets and struts wat is the diffrence between servlets and struts?
A Servlet is a technology and Struts is a framework which relies on or makes use of Servlets.A Servlet is a controller. Struts has its own Servlet
Servlets Programming Servlets Programming Hi this is tanu,
This is a code for knowing... visit the following links:
Sessions in servlets
Sessions in servlets What is the use of sessions in servlets?
The servlet HttpSession interface is used to simulate the concept that a person's visit to a Web site is one continuous series of interactions