What is the ServletConfig() and what is its use?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Hi friends am newbie to servlet. How code reusability easy in servlet. why not in jsp . here reusabillity means only javabeans or any thing else.
What is the protocol used by Server & Client?
How to generate the server side programming and the advantages of it over the other languages?
What are important features of Servlet 3?
What are life cycle methods of a servlet?
What exactly are the functions of servlet?
How forward () method is different from send redirect () method?
How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method?
request parameter how to find whether a parameter exists in the request object?
What are the different session tracking techniques?
What is Servlets and explain the advantages of Servlet life cycle?
What are cookies and how will you use them?