| Author |
Servlet context and config
|
sahidul karim
Greenhorn
Joined: Sep 19, 2006
Posts: 28
|
|
|
How servlet context and servlet config object is created ?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56179
|
|
|
By the servlet container on your behalf.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
sahidul karim
Greenhorn
Joined: Sep 19, 2006
Posts: 28
|
|
|
that i kw , but i want to know in depth. first servlet container ll create servlet context using reflextion afer dat hw servlet config obj ll b created?
|
 |
Rahul Bhattacharjee
Ranch Hand
Joined: Nov 29, 2005
Posts: 2300
|
|
|
Well the spec doesnot specify that is has to create the config and context object using reflection.But I think there is no need to create these objects by reflection.
|
Rahul Bhattacharjee
LinkedIn - Blog
|
 |
sahidul karim
Greenhorn
Joined: Sep 19, 2006
Posts: 28
|
|
|
So when reflection will come in this scenario? after matching in web.xml how context object ll be created ?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56179
|
|
Originally posted by sahidul karim: that i kw , but i want to know in depth. first servlet container ll create servlet context using reflextion afer dat hw servlet config obj ll b created?
sahidul, what are the words km, ll, b and so on? Please use real words when posting.
|
 |
Rahul Bhattacharjee
Ranch Hand
Joined: Nov 29, 2005
Posts: 2300
|
|
|
There is no need of reflection but yes while creating instance of servlet it uses reflection.
|
 |
 |
|
|
subject: Servlet context and config
|
|
|