servletsinit-parameters

What is the need of servlet init parameters?


What is the need of using init-parameters in servlet configuration? If answer is to let the servlet initialize it's parameters, then the question to this answer is "Does this initialized value persists when server boots next time to instantiate the Servlet again?". Storing these parameters on file can be a better option then. I just want to clarify if I can set the value of init-parameter in destroy() so that when server boots next time it will have updated value for this parameter in init().


Solution

  • This is what I wanted to know http://wiki.metawerx.net/wiki/AdvantagesOfSpecifyingParameterValuesInWeb.xml