wellnwill

ServletConfig

Fetch ServletConfig parameters using getInitParameter

//Get config parameter values
ServletConfig cfg = getServletConfig();
String trainerName = cfg.getInitParameter("trainerName");
String trainerEmailId = cfg.getInitParameter("trainerEmailId");

Fetch ServletConfig parameter using getInitParameterNames

Enumeration paramEnum = request.getParameterNames();
   List paramList = Collections.list(paramEnum);
  for (String param : paramList) {
   out.print(" 
"); }
 
Footer with Map

Top