What is the ServletConfig() and what is its use?

Answers were Sorted based on User's Feedback



What is the ServletConfig() and what is its use?..

Answer / tulasi vani

ServletConfig gives the information regarding the
configuration of the servlet.It provides the information
regarding the initialisation parameters which are specified
in the web.xml file.Its also contains an object of servlet
context which gives servlet information about the container

Is This Answer Correct ?    32 Yes 3 No

What is the ServletConfig() and what is its use?..

Answer / ramesh nagula

A servlet configuration object used by a servlet container
used to pass information regarding the initialisation
parameters which are specified
in the web.xml file to a servlet during initialization

Is This Answer Correct ?    14 Yes 3 No

What is the ServletConfig() and what is its use?..

Answer / jiban

ServletConfig as the name implies provide the information about configuration of a servlet which is defined inside the web.xml file or we can say deployment descriptor.its a specific object for each servlet

Is This Answer Correct ?    2 Yes 0 No

What is the ServletConfig() and what is its use?..

Answer / dileep

which describes the configureation of our servlet.
generally we will declare all member variables and nmember
functiions inside init() method.thats why we are passing
ServletConfig as parameter to every init() method of the
servlet.

Is This Answer Correct ?    8 Yes 8 No

Post New Answer

More Servlets Interview Questions

Why doesn’t a servlet include main()? How does it work?

0 Answers  


What is the use of request dispatcher interface?

0 Answers  


What is the purpose of dispatcherservlet properties?

0 Answers  


Explain servlet events?

0 Answers  


What is servlet and how it works?

0 Answers  






Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

0 Answers  


What is httpservlet and how it is different from genericservlet?

0 Answers  


What is the directory structure of a war file?

0 Answers  


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

0 Answers   ProKarma,


How session tracking can be achieved, if your browser doesn't support cookies (or) if cookies are disabled?

2 Answers  


What is a servlet-to-servlet communcation?

0 Answers  


What advantages do servlets have over CGI programs?

5 Answers  


Categories