• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ServletConfig Object

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is servletConfig Object?
What information is encapsulated in ServletConfig Object?
Could someone explain on getInitParameter(String) method?
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The ServletConfig class is used by the servlet container to communicate information to the servlet. Initialization parameters, for example, that the servlet engine wants to pass to the servlet are passed in the ServletConfig object. It also paases the ServletContext object which you can use to find the API version that the servlet is running under and other information about the Servlet Container.
The getInitParameter() method passes initialization parameters that the Servlet Container wants to provide to the servlet.
reply
    Bookmark Topic Watch Topic
  • New Topic