GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Certification  >  Sun
Go To First  |  Previous Question  |  Next Question 
 Sun  |  Question 32 of 38    Print  
what is the difference between servlet config and servlet context?

  
Total Answers and Comments: 2 Last Update: August 19, 2006     Asked by: eldhose222 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 08, 2006 13:46:10   #1  
namit Member Since: July 2006   Contribution: 1    

RE: what is the difference between servlet config and ...

Servlet context is used for the persistency of the data for the servlets within the same web application or within the same servlet engine.

So a particular data is common for all servlets sharing the same web application.

Whereas the servlet config is used to use a particular data for each servlet.

Other servlet in the web application cannot access the data obtained by servlet config of other user. Servlet config is used to access the data for itself. Other servlet cant access others servlet config data.


 
Is this answer useful? Yes | No
August 19, 2006 00:11:28   #2  
Neeraj        

RE: what is the difference between servlet config and ...

A servlet configuration object used by a servlet container used to pass information to a servlet during initialization.

Servlet context is used to communicated within web container. There is one servlet context per Application per JVM. Servlet Context is part of ServletConfig.

ServletContext ServletConfig.getServletContext()


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : The idea is that a URL is a mechanical link to a resource's location, where it can be downloaded. For this reason, a URL contains a hostname and a local part, all of which can be resolved anywhere on the Internet. What a URN tries to do is different. ...
Read Answers (6) | Asked by : Suresh

Latest Answer : Even though we call a jsp page from servlet through request dispatcher,we can not call a perticular method of a jsp from servlet.there is no such mechanism in servlet API.but iam not sure. ...
Read Answers (5) | Asked by : Murthy

Latest Answer : Abstract class is not fully implemented class. The main purpose of abstract class is providing abstraction.1)It may be or may not be contains abstract methods.it may has defined methods also.2) It contains any kind of fields.3) Subclass extends only ...
Read Answers (22) | Asked by : apt_dpl
Tags : Abstract

Servlet is Java class. Then why there is no constructor in Servlet? Can we write the constructor in Servlet
Read Answers (13) | Asked by : Suresh

Latest Answer : the following code shows you how to communicate to servlet from within an applet// Connection to servletURL urlServlet = new URL(getCodeBase(), "ServletName");URLConnection con = urlServlet.openConnection();con.setDoInput(true);con.setDoOutput(true);con.setUseCaches(false);con.setRequestProperty("Content-Type", ...
Read Answers (1) | Asked by : neeraj kumar

Latest Answer : The reference variable is that one where we r not using the new keyword e.g. Connection con; But Object is that where we r using new operatore.g Classname cs1=new classname ...
Read Answers (4) | Asked by : suresh

Latest Answer : hi there,throws::::(DECLARATION) the way we decalre that exception might occur...... it is a caution to the JVM so that it prepares to handle the Exceptionthrow::::: if at any stage of coding we r sure that an exception might occur and unfortunately if ...

Latest Answer : A servlet configuration object used by a servlet container used to pass information to a servlet during initialization. Servlet context is used to communicated within web container. There is one servlet context per Application per JVM. Servlet Context ...

If we are not using forbean then how request will be processed from one jsp page to other jsp page using Struts Action mapping.forward should be through action mappinh in struts-config.xml?
View Question | Asked by : Amit


 Sponsored Links

 
Related Articles

Microsoft AJAX Library - JavaScript Execution Context

JavaScript Execution Context In this section we ll take a peek under the hood of the JavaScript closures and the mechanisms that allow us to create classes objects and object members in JavaScript For most cases understanding these mechanisms isn t absolutely necessary for writing JavaScript code&am
 

SOA Definitions and Certification

SOA Definitions and Certification Service Oriented Architecture is a design that enables Business and computational resources to be linked together on demand as a means of achieving the results desired for service consumers which may be end users or other services Service Oriented Architecture has
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

Top 10 Application Security Vulnerabilities in Web.config Files - Part One

These days, the biggest threat to an network security comes from its public Web site and the Web-based applications found there. Unlike internal-only network services such as databases-which can be sealed off from the outside via firewalls-a public Web site is generally accessible to anyone who wan
 

Top 10 Application Security Vulnerabilities in Web.config Files - Part Two

Some of the most common and dangerous application security vulnerabilities that exist in ASP.NET Web-based applications come not from the C# or VB.NET code that make up its pages and service methods, but instead from the XML code that makes up its Web.config files. Incorrect configurations can open
 

Tips for Oracle Certification

Getting an Oracle certification is reliable credential recognized by industries that can accelerate professional development and their productivity. So this article provides some tips for getting this oracle certification.  First one must plan well to allocate their time for prepari
 

Oracle Certification and its Importance

Oracle certifications are valid credential recognized by industry that can help one to succeed in their IT career. Oracle is the largest enterprise software company and to get the oracle certification from this company is really a great credit to career.  The Oracle Certification Progr
 

Insight on SAP Certification

The demand for SAP remains strong which makes experience as the paramount in finding work as an SAP consultant or programmer and along with this certification can provide concrete evidence of SAP expertise. The other main reason for certification playing an important role is because the certified
 

VoiceXML Certification Opportunities

At first, the certification program will place an emphasis on the platforms of VoiceXML. The tools and applications would be tested, and to pass the certification program, the system must be in compliance. The process of certification for VoiceXML products will be processed by the members of the Fo
 

Why You Need IT Certification

IT Certification is a term that is often overlooked.  There are also many individuals who are unsure of why they would need to have this knowledge. If you are working in a variety of situations, having IT Certification will help you in several ways.  By understanding why you would
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape