What are different types of Servlets?

Answer Posted / jyoti

HttpServlet
Generic Servlet

Is This Answer Correct ?    39 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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!

1859


Which exception is thrown if the servlet is not initialized properly?

621


How to get the actual path of servlet in server?

764


What is a servlet-to-servlet communcation?

677


How to find whether a parameter exists in the request object?

692






What are the advantages of cookies?

653


Which event is fired at the time of setting, getting or removing attribute from application scope?

644


How can an existing session be invalidated?

691


Does servlet have main method?

717


How can you use a servlet to generate a plain text instead of html?

634


Why is servlet used?

712


Is java servlet still used?

622


What is the type of method for sending request from http server?

622


What is the use of servlet wrapper classes?

691


Explain the steps involved in placing a servlet within a package?

593