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




Have Programming Question? Ask it here!
 
 
 


Robin Sharma
advance java
1 Answer(s)      3 years and 4 months ago
Posted in : JSP-Servlet


what is servlet context?why its used?in what situation we should use it in our program?


Advertisement
View Answers

December 24, 2010 at 1:23 PM


Hi Friend,

ServletContext is an interface that is defined in the javax.servlet package. It describes a set of methods for communicating with the servlet container. For example, dispatch requests, to get the MIME type of a file, or write to a log file.

Each web application 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 the data with one to another.

For more information, visit the following links:

http://www.roseindia.net/servlets/ServletContext.shtml

http://www.roseindia.net/tutorial/servlet/getContextParameters.html

Thanks



Related Tutorials/Questions & Answers:
advance java
advance java  i want to refer advanced java book can u plz suggest me auther name   You can learn from the following books: 1)Advanced Java, Gajendra Gupta 2)Core servlets and JavaServer Pages,Marty Hall
advance java
advance java  application to demonstrate email validator
Advertisements
advance java
advance java  give the sourse code for sky high institute of management using j2ee
Advance Java
Advance Java  Context ctx = new InitialContext(); if(ctx==null) { throw new RuntimeException("JNDI Context not Found"); } ds=(DataSource)ctx.lookup
advance java
advance java  what is servlet context?why its used?in what situation we should use it in our program?   Hi Friend, ServletContext is an interface that is defined in the javax.servlet package. It describes a set
Advance Java Training Program
Advance Java Training Program  Hi, Can anyone guide me how to study advance Java in few day's  Please visit the following link: Java Tutorials Through the above link, you will get the links of advanced java tutorials
Advance and Core JAVA Topics
Advance and Core JAVA Topics  topics come under core java and topics come under advanced java?   Under Core Java, following topics comes... JDBC Under Advanced Java, following topics comes: Generics Reflection
advance java question
advance java question  how to develop servlets without using any IDE such as netbeans..   Hello Friend, Follow these steps: Put servlet-api.jar inside the lib folder of apache tomcat. 1)create a servlet. import
Advance Java training topics
Advance Java training topics     ... simple JSPs that use Java code in declarations, expressions and scriptlets... Java exception handling and JSP error pages to handle errors   
Advance DBMS
Advance DBMS  What are views? Explain its various types?   Hi, Database allows us to create abstract form of the data from different tables. This is done through views. Read how to create view at Views in SQL
Advance Java Training
Advance Java Training      ... simple JSPs that use Java code in declarations, expressions and scriptlets... Java exception handling and JSP error pages to handle errors. 
Advance Search in Servlet
Advance Search in Servlet  Sir, I have built an application where a user types a long string as input. Then after he/she types a single word of that string. I'm supposed to show all strings which have that word in them. Ex
Advance Search in Servlet
Advance Search in Servlet  Sir, I have built an application where a user types a long string as input. Then after he/she types a single word of that string. I'm supposed to show all strings which have that word in them. Ex
Advance Search in Servlet
Advance Search in Servlet  Sir, I have built an application where a user types a long string as input. Then after he/she types a single word of that string. I'm supposed to show all strings which have that word in them. Ex
Advance Search in Servlet
Advance Search in Servlet  Sir, I have built an application where a user types a long string as input. Then after he/she types a single word of that string. I'm supposed to show all strings which have that word in them. Ex
Core Java Jobs at Rose India
in advance java to make you advance Java programmer. So, if you know Core Java... learning. We will provide you training on advance java... You will be part of our advance Java Programmers You
Learning Java Basics
Learning Java Basics You can start your career in Java technologies first by learning the basics of java and some part of advance java. Some companies... and the techniques of java programming you can start learning advance java
Advanced Java Tutorials
of Advance Java online course materials. The links to these Advance Java Tutorials... increases the advance java skills and helps the programmers to better utilize the advance features of Java technology. After learning our Advance Java
Advanced Java Training
Advance Java training are carried out to expand the programming skills... in framework, API, platform. The Advance Java training provided at Roseindia... in the field. Advance Java is used to make softwares, mobile and desktop
Java Course
Java Course provided at RoseIndia spreads into various levels from basic to professional to advance. These courses are tailor made for both beginners and professional seeking to improve their skills in Java programming. Java course
how to output text from comboBox from first frame to textField on the second frame? please help me.. thank you in advance..
how to output text from comboBox from first frame to textField on the second frame? please help me.. thank you in advance..  how to output text from..... thank you in advance
Learning Java programming for Beginners
Learning Java programming is not a difficult task as it has been hyped... there are class room training provided to teach Java, it is considered difficult to keep... queries will be answered. Now online learning of Java programming is becoming
Learn Java for beginners
a programmer from basic to advance level of Java. New programmers prefer to learn Java...Beginners can learn Java online though the complete Java courses provided at Roseindia for free. This Java course covers the whole of Java programming
Java Exercises for Beginners
for the beginners of Java tutorials. The tutorial highlights the facts, which will enable you in terms of Java article and exercises. The exercises will provide you the basic opportunity and chance to understand the facts of Java syntax
Advance Struts Action
Advance Struts2 Action In struts framework Action is responsible for controlling the request coming from the clients. It is a java class class it can... is said to be advance which reduces the complexity of code, that implements
Java Server Faces (JSF) Tutorials
JSF Tutorials Java Server Faces (JSF) is a web application based on Java... is a part Java Platform, Enterprise Edition which was formalized in a specification through the Java Community Process. The initial specification of JSF was released
Online Java Training
Online Java training provided by Roseindia is free but is as elaborate and as extensive as any other expensive training provided at any institution. The Java training provided online cover all the topics from basic to advance level so
Java Enterprise Edition 7 (JEE7): Features and Specifications
Java Enterprise Edition 7 (JEE7): Features and Specifications The latest version of Java Enterprise Edition (JEE) called JEE 7 was recently launched by the Oracle and the Java Community Process (JCP) members along with Java EE 7
Advance (Enterprise) Features
Advance (Enterprise) Features       Clustering Clustering feature works with only JDBCJobStore. It include job fail-over and loaded - balancing. Setting up the "
JAX-RPC Advance Concepts
JAX-RPC Advance Concepts       Project Requirement Make a web service program which can persists the records of a student
java
java  How to write coding in java for prime numbers?? Thanking you in advance
Online Training Courses
Online Training Courses        Core Java Training Topics Advance Java (JSP/Servlets) Training Topics Jakarta Struts & Advanced JSP Topics Java Server Faces (JSF) Training
java
java  using java how to show password in stars (**). but not in JSP. plz im waiting for ur reply eagerly. thanks in advance
JEE - Java Enterprise Edition
JEE - Java Enterprise Edition In this section we are going to discuss about the Java Enterprise Edition or simply JEE platform. In this section of JEE you... enterprise grade applications. Java Enterprise Edition or JEE is a software platform
java
java   I have a file ,I want this file is given to the power builder application using java program or jsp. if anybody help in this.... in advance thanks
corejava - Java Interview Questions
Core Java vs Advance Java  Hi, I am new to Java programming and confuse around core and advance java
java - Java Beginners
Java beginner advanced tutorial  Do you have any series of advance tutorials for Java beginner
java - Java Beginners
Java applets programs coding  Java applets programs coding and example.Thanks in Advance
Description of EJB 3
is an advance version of EJB2 included in JAVA EE 5 specification. The main focus...; Enterprise beans are the Java EE server side components that run inside the ejb container... Beans and the new EJB Query Language (EJBQL). It uses the release version of Java
Java
Java  i have a file ,i want this file is given to the power builder application using java code or jsp code.. anybody help. in advance thanks
Core Java - Java Interview Questions
Core Java Applet  I want a small core java applet example.Thanks in Advance
Java Objects - Java Beginners
Java Objects  Hi I have the following question, What method in Java is used to destroy your objects. Thanks in advance
Java
Java   Adding image to database through jsp or HTML page,while adding only image should show. After that i need view that uploaded image from different jsp or HTML page. please help me. Thanks in Advance
file in java - Java Beginners
file in java  I want to count the number of white line and comment line in a file (.sql) with java if you have an example thank you in advance
quetion - Java Beginners
Questions for Java Beginners  Hi, I am looking for the questions for Java Beginners.Thanks in Advance
java - JSP-Servlet
Java hibernate getting started  I want a quick start for Java and Hibernate programming.Thanks in advance
Java script in servlet
Java script in servlet  Hi. How to use javascript inside java servlet? Thanks in advance
java API
java API  Hi friends, please tell me that is it possible to communicate with hardware Through RS232 in java on windows platform?? Thanks in advance
java
java with jdbc and stored some usernames and passwords in database  i... in java with jdbc and stored some usernames and passwords in database.Now basing... in page. how? reply me plz.thanks in advance
Java Code - Java Beginners
Java Code  Hi all, I need to copy the contents and subfolders in a particular folder to the other folder using java... Can any one help me with the code... Thanks in advance
 

 

 

DMCA.com