Which method the Servlet container call to create the
instance of the servlet?
Answer Posted / priyanjan
Servlet container invokes the init() method to create the
instance of servlet.
| Is This Answer Correct ? | 18 Yes | 11 No |
Post New Answer View All Answers
How we can call a jsp from the servlet?
How to get the current httpsession object?
Explain the war file?
Is servlet a framework?
Why is httpservlet declared abstract?
What is difference between server and servlet?
Differentiate between the print writer and servlet output stream?
Write a program to show the functionality of doget and dopost method?
What is the workflow of a servlet?
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 are sessions in servlets?
What are the different methods of session management in servlets?
What is the difference between 2 types of servlets?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is ServletContext object?