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

Are Servlets by default thread safe or not? thanks in advance regards Sudhakar

3 Answers  


Difference between get and post in java servlets?

0 Answers  


Name the servers that can be used to develope and deploy Servlets?

1 Answers  


What are different Authentication options available in Servlets.

0 Answers  


Given the request path below, which are context path, servlet path and path info? /bookstore/education/index.html

1 Answers  






What are cookies and how will you use them?

3 Answers  


Can you refresh servlet in client and server-side automatically?

0 Answers  


What is url encoding and url decoding

0 Answers  


how do you maintain sessions in servlets?

5 Answers   AZTEC, L Cube,


What is pure servlet?

0 Answers  


What are the difference between HttpServlet and GenericServlets?

2 Answers  


What happens, if server sends a cookie to a browser that doesn't supports cookies?

2 Answers  


Categories