Which method the Servlet container call to create the
instance of the servlet?
Answer Posted / samik bandyopadhyay
The init() method is only used to initialize an existing
servlet instance before it starts providing service to
requests, it's never used for creating a servlet instance.
I'm searching for the method which creates the servlet
instace. But I can assure that we can't create a servlet
instace, it's done by the container.
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
Write a simple servlet program to print the contents of html.
Is it good idea to create servlet constructor?
What is called a session?
What is Servlet API used for connecting database?
What is the use of request dispatcher interface?
What do you mean by chaining in servlet?
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 >>
Which is the methods of generated servlet?
Differentiate between the print writer and servlet output stream?
Why the concept of single thread model interface is used?
What are the uses of servlet and what is servlet chaining?
Explain web application directory arrangement?
Which java framework is most popular?
How will you pass values from HTML page to the servlet?
What is servlet and how it works?