how a servlet is instantiated, whether the container calls
init() or by calling any other method? please somebody reply..
Answer Posted / harikumar
if we deploy our web root dir in webapps , then we call url
from the browser.
then after loading , it calls the init() method first.
There r two tow init() methods(first init() & second init
()).
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
Describe the phases of servlet lifecycle?
Is that servlet is pure java object or not?
Which event is fired at the time of project deployment and undeployment?
When servlet is loaded?
When should you prefer to use doget() over dopost()?
Explain the difference between servlet and cgi?
What is Request Dispatcher?
What is the purpose of dispatcherservlet properties?
Which http method is said to be non-idempotent and idempotent?
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()?
What is servlet in web technology?
What are the different mode that servlets can be used?
What if we pass negative value in load-on-startup?
Why do we need servlet filter?
What mechanisms are used by a Servlet Container to maintain session information?