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

How we can get ip address of client in servlet?

769


What is servlet mapping?

786


If my browser does not support cookie, and my server sends a cookie instance what will happen?

855


What is the life-cycle of servlets?

882


What are the new features added to servlet 2.5?

873


What if we pass negative value in load-on-startup?

1059


What are the servlet events?

799


What are the phases of a servlet life cycle?

868


When jsessionid is created?

815


What are the different ways we can maintain state between requests?

810


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

775


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

3145


Differentiate between the web server and application server?

803


What is the use of httpservletresponsewrapper?

742


What is the default http method in the servlet?

1040