What is the difference between servlet config and servlet
context.
Answer Posted / ganesh
ServletContext object is used to give the
initparameter(Context) values to each servlet written in a
web appliction
but in servletConfig is used to give initparameter values to
only to specific servlet in which they are mentioned at the
time in web.xml file
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the life cycle of a servlet?
What is difference between GenericServlet and HttpServlet?
What do you mean by web applications?
Explain url encoding in servlet?
What are different ways for authentication of servlet?
What's the use of servletcontext?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
Which httpsession object is used to view and manipulate information about a session?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What are the different methods involved in the process of session management in servlets?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
List some life cycle methods of a servlet.
What is cgi?
What is servlet and how it works?
Where do you define dispatcherservlet?