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
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What is URL Encoding?
Does servlet have main method?
Given the request path below, which are context path, servlet path and path info?
What is servlet interface?
Is servlet a server side scripting language?
What is war file?
What are the exceptions thrown by servlets? Why?
What are different Authentication options available in Servlets.
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!
What is a web container and what is its responsibility?
How will two or three servlets interact or communicate with each other?
Explain request dispatcher and its methods.
What is the
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