This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Implementation for ServletConfig? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Implementation for ServletConfig?" Watch "Implementation for ServletConfig?" New topic
Author

Implementation for ServletConfig?

Amit Das
Ranch Hand

Joined: Mar 05, 2005
Posts: 206
Hi all,

I know that when the Server receives a request for the first time, it calls init(ServletConfig), where the Servlet Container passes the object of ServletConfig to the servlet in consideration.
My question is where can i find the implementation for the object of ServletConfig which is provided by the Servlet Container???

Plz let me know ASAP..........

Regards,
Amit

[cleaned up the topic - Dave]

[ July 19, 2006: Message edited by: David O'Meara ]
[ July 19, 2006: Message edited by: Bear Bibeault ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

So many stars, question marks and full stops? Please EaseUp.

A Servlet Context is an interface, but you can always find the concrete type from an instance using getClass(). THis will change depending on your server, but should get you started.

Dave
Amit Das
Ranch Hand

Joined: Mar 05, 2005
Posts: 206
thanks David for ease up as well

ServletConfig's reference.getClass() will gimme the Class object for ServletConfig....right....
But i need to see the source code, i.e. say Tomcat's servlet containers implemetation for it....hope u got my point...

Thanks,
Amit
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61317
    
  66

You can download the Tomcat source code from the Tomcat site.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: Implementation for ServletConfig?