Which method the Servlet container call to create the
instance of the servlet?

Answer Posted / pintu debnath

init() method is only used to initialize a servlet, and it
is called after the servlet instance has been created.

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you invoke a Servlet? What is the difference between doPost method and doGet method?

634


What is URL Encoding?

611


Does servlet have main method?

678


Given the request path below, which are context path, servlet path and path info?

536


What is servlet interface?

694






Is servlet a server side scripting language?

546


What is war file?

571


What are the exceptions thrown by servlets? Why?

614


What are different Authentication options available in Servlets.

561


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

1823


What is a web container and what is its responsibility?

521


How will two or three servlets interact or communicate with each other?

891


Explain request dispatcher and its methods.

575


What is the element?

581


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2909