Post a Job  |   Ask a Question?   |   Already registered? login or register
Nagarjuna Reddy
01/02/2016 10:51 PM


public void init(ServletConfig config){ this.config=config; } public void destroy(){ } public ServletConfig getServletConfig(){ return config; } Questions::1)why the sun developers had made a ServletConfig has a parameter in the init method public void init(ServletConfig config) { } Question::2)why the ServletConfig object is useful Question::3)why the sun had provide a init() method
Spam    1 Comments

02/02/2016 11:45:36
1.for Initializing the custom configuration values to the servlet 2.if you want to use some cofiguration inforamtion to the specific servlet the u should use init(ServletConfig config). 3.init() for default initializtion

Languages :