Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the diff between Servletcontext and servletconfig?

Answers were Sorted based on User's Feedback



what is the diff between Servletcontext and servletconfig?..

Answer / monisha

ServletContext is created only once in a whole application
whereas servletConfig is created for each servlet in an
application.

Is This Answer Correct ?    13 Yes 0 No

what is the diff between Servletcontext and servletconfig?..

Answer / abdul mannan

In ServletContext value will b same for whole application
and were as the servletConfige value will b seprate or
diffrant for all the application in the project..

Is This Answer Correct ?    6 Yes 0 No

what is the diff between Servletcontext and servletconfig?..

Answer / srinu

servletcontext:
1) servletcontext object one for webapplication
2)it used global init parameters
3)with help servletcontext object we find our webserver
ingformation(public java.lang.String getServerInfo())

servletConfig:

1)servletConfig object will be created every servlet suppose
in my webapplication 10 servlets are their 10 servletConfig
object will be created but only one SwervletContext object
will be created
2) it is the righthand object of servlet
3)it used local init parameters
4)with help of servletConfig object we find out logical name
of servlet(public java.lang.String getServletName())

Is This Answer Correct ?    4 Yes 0 No

what is the diff between Servletcontext and servletconfig?..

Answer / srinivasa

Every web application has only one SContext object.
There are n number of SConfig objects in an Web app where
n is the number of servlets. It is specific to a servelt.
ServletContext is used to get the context parameters.
ServletConfig is used to get to the init parameters.

Is This Answer Correct ?    2 Yes 1 No

what is the diff between Servletcontext and servletconfig?..

Answer / sreenu karampudi

ServletContext: One Object(ServletContext) for application
ServeltConfig: It is specifig to a servelt in an
application. Each servlet will have a ServletConfig

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is jdk1.5 features?

6 Answers   AMS, Virtusa,


Keywords in Exceptions?

2 Answers  


what is an virtual function

2 Answers   TCS,


In collection sorting comparable and comparator interface will be used..but why this two interfaces required..two will work same purpose so why there are two interfaces instead of one?when to use comparator and when to use comparable?

1 Answers   Ericsson,


Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?

2 Answers  


What is a protected class in java?

0 Answers  


Give few examples of final classes defined in Java API?

0 Answers   BirlaSoft,


While opening the file, what type of exceptions can be caught?

3 Answers  


How thread scheduler schedule the task?

0 Answers  


Explain how to convert any java object into byte array.

0 Answers  


Why is sizeof not a function?

0 Answers  


How do you declare a string variable?

0 Answers  


Categories