aspose file tools*
The moose likes Servlets and the fly likes Servlet  context and config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet  context and config" Watch "Servlet  context and config" New topic
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: 61226
    
  66

By the servlet container on your behalf.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 2308
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: 61226
    
  66

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: 2308
There is no need of reflection but yes while creating instance of servlet it uses reflection.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet context and config