devarathnam c,kotagudiban


{ City } bangalore
< Country > india
* Profession * software engineer
User No # 6124
Total Questions Posted # 0
Total Answers Posted # 61

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1330
Users Marked my Answers as Wrong # 421
Answers / { devarathnam c,kotagudiban }

Question { 10351 }

what is the difference between ServletContext and
ServletConfig?


Answer

Hi,

ServletContext: ServletContext is a view of webapplication,
there will be only one servletcontext for one
webapplication. It acts as shared memoty area, all the
components of a webapplication can access the data from
servletcontext object.

ServletConfig: ServletConfig will be specific to each
servlet. If your webapplication contains 20 servlets then,
there will be 20 servletsconfig objects.

Is This Answer Correct ?    8 Yes 3 No



Prev    1   2   3   4    [5]