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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does percent mean in java?

1072


What are the advantages of packages in java?

1733


What is mean by collections in java?

1253


How do you create an array in java?

1033


What is class forname?

1091


If an application has multiple classes in it, is it okay to have a main method in more than one class?

1057


Why collection doesn’t extend cloneable and serializable interfaces?

1149


What is byte code and why is it important to java’s use for internet programming?

1195


How to display all the prime numbers between 1 and 100

1080


What is callablestatement? How you can call stored procedure to pass in parameter?

1068


What is core java used for?

1203


What is java literals?

1201


What is the difference between size and length in java?

1021


Explain differences between checked and unchecked exceptions in java?

1113


Why singleton class is used in java?

1195