• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet context and config

 
sahidul karim
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How servlet context and servlet config object is created ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the servlet container on your behalf.
 
sahidul karim
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sahidul karim
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need of reflection but yes while creating instance of servlet it uses reflection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic