Thursday, April 3, 2008

Servlet init parameters

these parameters are used to store some dynamic information in web applications.
init parameters can be accessed through the servlet config object where every servlet gets a reference to that.init parameters can only be accessed after calling the init method for that servlet.because the servletconfig is only available after a servlet initialization is done.

  • how to access init parameters











the ServletConfig interface have a method for getting init parameters
this is how we do that
getServletConfig.getInitParameter("Admin-email") ;

2 comments:

Prabath Ariyarathna said...

hi aka well done machan keep goin.
but ur picture is not good.

Prabath Ariyarathna said...

machan visit www.prabu-lk.blogspot.com
its 4 Linux