Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementation for ServletConfig?

 
Amit Das
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65226
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can download the Tomcat source code from the Tomcat site.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic