Can a servlet be called by passing its name as a parameter
in the URL?

Answer Posted / tulasivani

No, it cannot be done.We use deployment descriptors as
writtne in web.xml file which is used to identify a servlet.
servlet name, servlet class and url-pattern are specified
in the web.xml file which will find the url-pattern and
identify the servlet associated with in

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between get and post?

679


What do you mean by cgi?

529


What are the types of protocols supported by httpservlet ?

700


What are the two important api's in for servlets?

586


what is multiple server?

1755






What are important features of Servlet 3?

587


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!

1827


What is the difference between a generic servlet and http servlet?

517


What are the important functions of filters?

592


What is session tracking?

694


What are the different methods involved in generic servlet?

553


What are the life cycle methods of the servlet?

574


What do you mean by httpservlet and how it is different from the genericservlet?

534


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

550


How does tomcat servlet container work?

587