Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Vijay Kumar
ServletContext
1 Answer(s)      4 years and 2 months ago
Posted in : Servlet Interview Questions


What is ServletContext?


Advertisement
View Answers

November 2, 2010 at 12:08 PM


ServletContext is an Interface that 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. There is one context per "web application" per Java Virtual Machine. (A "web application" is a collection of servlets and content installed under a specific subset of the server's URL namespace such as /catalog and possibly installed via a .war file.)



Related Tutorials/Questions & Answers:
ServletContext
ServletContext   Explain ServletContext ?    ServletContext interface is a window for a servlet to view it's environment. A servlet can use... and only one ServletContext and is accessible to all active resource
ServletContext
ServletContext  What is ServletContext?   ServletContext is an Interface that 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
Advertisements
ServletContext
ServletContext       ServletContext is an interface that is defined in the javax.servlet package... file. Each web application has only one ServletContext, which is accessible
Explain ServletContext.
Explain ServletContext.  Explain ServletContext.   Hi, Here is the answer, ServletContext interface is a window for a servlet to view.... Every web application has one and only one ServletContext and is accessible to all
Difference between ServletContext and ServletConfig
Difference between ServletContext and ServletConfig   What is the difference between ServletContext and ServletConfig?   ServletContext... to a log file.The ServletContext object is contained within the ServletConfig
ServletConfig and ServletContext - JSP-Servlet
ServletConfig and ServletContext  Hi, What kind of infomation can be stored in and for ServletConfig and ServletContext objects .PLease give.... Each web application consists of one ServletContext, which can be used as share
difference between servletconfig and servletcontext in java
difference between servletconfig and servletcontext in java  difference between servletconfig and servletcontext in java   ServletContext ServletContext is implemented by the servlet container for all servlet
difference between servletconfig and servletcontext in java
difference between servletconfig and servletcontext in java  ... using init(). ServletContext is implemented by the servlet container for all... using init(). ServletContext is implemented by the servlet container for all
Java ServletContext Interface
Java ServletContext Interface In this tutorial, we will discuss about ServletContext Interface. ServletContext Interface : ServletContext defines set.... ServletContext object is used to communicate with the servlet container. There is only
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... initialized in the web.xml file. ServletContext getServletContext() : This method
ServletContext Java EE 6
ServletContext Java EE 6 In this tutorial you will learn about the modification in ServletContext interface's made in Java EE 6. Definition of ServletContext is remain same, as usual you know the definition of ServletContext
Servlet Context
; ServletContext is a interface which helps us to communicate with the servlet container. There is only one ServletContext for the entire web... it. The information in the ServletContext will be common to all the components. Remember
ServletContextListener example
; ServletContextListener we should understand what is ServletContext. ServletContext... ServletContext for the entire web application and the components of the web application can share it. The information in the ServletContext will be common
Servlet Context
. ServletContext an interface is used for communicating the Servlet Container. ServletContext provides the various methods using which a Servlet container can share information among the other components. ServletContext can be used to get
java - Servlet Interview Questions
java  Which interface or class is implementing or extending ServletContext interface
servlet - Servlet Interview Questions
servlet  what is the difference between servletconfig and servletcontext objects in servlet.If any body knows please tell me
servlet - Servlet Interview Questions
servlet  what is the difference between servletconfig and servletcontext objects in servlet.If any body knows please tell me
Servlets - JSP-Servlet
give the clear idea of ServletContext and servletConfig.  Hi friend, ServletContext and ServletConfig,both are interfaces. The ServletConfig interface.... The ServletContext interface define methods that allow a servlet to interact
advance java
we should use it in our program?   Hi Friend, ServletContext... has only one ServletContext, which is accessible to all the active resources of that application. The ServletContext can also be used by the servlets to share
servlets - Servlet Interview Questions
answer plz).thank u in advance.  Hi friend, ServletContext... ServletContext for the entire web application and the components of the web application can share it. The information in the ServletContext will be common
the servlets
context   ServletContext is a interface which helps us to communicate with the servlet container. There is only one ServletContext for the entire web... ServletContext : ServletContext context = getServletContext(); pw.println
JAVA - JSP-Servlet
ServletConfig and ServletContext object? mail: balla.rajaramesh@gmail.com  Hi Friend, Differences: 1)ServletContext object is shared by all... servlet and are unknown to other servlets whereas ServletContext parameters
getting classnotfound exception while running login application
in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Cannot resolve reference... in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception
ServletContextListener example
; ServletContextListener we should understand what is ServletContext. ServletContext is a interface which helps us to communicate with the servlet container. There is only one ServletContext for the entire web application
Getting Context Parameter Names
in the web.xml file. ServletContext is a interface which helps us to communicate... of ServletContext. Its the responsibility of the Container to give the reference of the ServletContext to the context init parameters. The servlet and jsp which
ServletContextAttributeListener
. The elements of the ServletContext are stored in web.xml file. Whenever...; tag should appear before the Servlet tags.  ServletContext is a interface... ServletContext for the entire web application and the components of the web
How to find a servlet object by name?
by calling getServletNames on the ServletContext object. ServletContext is available
jdbc code - JDBC
current user and his/her password use ServletContext. or like this. if u want... there user and password. And Pass the List to next page using ServletContext 2
fast Reply - Java Beginners
1) Use Hidden Form Field 2) Session 3) ServletContext Use any...("myValue"); 3) ServletContext ctx = getServletContext(); ctx.setAttribute
Advertisements
 

 

 

DMCA.com