Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About ServletConfig Object

 
Raj chiru
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi......
Mydout is ServletConfig is an interface,so who implements this interface? and How?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the source code of whatever servlet container you're using - it will include a class that "implements ServletConfig".

You can also check its class name in the servlet by calling "conf.getClass().getName()" (assuming that "conf" is the ServletConfig object).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64835
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the best thing is, who cares? As servlet authors, we don't need to know. Aren't interfaces great?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic