Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servletconfig?

 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is actual purpose of Servletconfig web app?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean the ServletConfig class ?
If so, look at ServletConfig. A servlet can access a ServletConfig, and retrieve thinkgs like initialization values. You can see the full thing a servlet can access via its ServletConfig, by looking at the API above.
 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes I Know that we initialization is perform in ServletConfig,
But I don't know actual real time scenario for same...........
Please elaborate.....
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the deployment descriptor, you could have :

You can access those parameters via the ServletConfig.
 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for reply
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic