Servlets Interview Questions
Questions Answers Views Company eMail

What is a web container and what is its responsibility?

725

What is servlet? Explain

770

What do you mean by annotations in servlet?

784

How we can call a jsp from the servlet?

712

What do you mean by cgi in servlet?

806

What do you mean by chaining in servlet?

778

Explain url encoding in servlet?

795

Explain the difference between servletconfig and servletcontext in servlet?

771

Explain the difference between a web server and a web container?

716

What do you mean by singlethreadmodel interface?

786

What do you mean by session tracking?

901

What is servlet and list its types?

765

Explain the methods of request dispatcher in servlet?

719

What do you mean by request dispatcher in servlet?

859

Explain the difference between servlet and cgi?

812


Post New Servlets Questions

Un-Answered Questions { Servlets }

What is servlet mapping?

759


What are life cycle methods of a servlet?

777


Define the lifecycle for executing a jsp page.

827


Can you use javascript in servlets?

802


What are the differences between the servletconfig interface and the servletcontext interface?

839


What is the difference between Servlets and Applets?

752


When Servlet is unloaded?

835


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!

1996


What is a servlet context?

818


How will you pass values from HTML page to the servlet?

773


What are the benefits of using servlet over cgi?

774


List the Different types of servlet?

780


Explain the servlet context.

807


What do you mean by default initialization in java servlet?

847


What is load-on-startup in servlet?

795