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

What is MIME Type?

872


How servlets are deployed in java?

739


What is the servlet?

837


What are the functions of the servlet container?

1335


What is the directory structure of a war file?

915


Differentiate between get and post?

900


How does tomcat servlet container work?

825


How do we go with database connection and log4j integration in servlet?

921


What is the procedure of invoking different servlet in a different application?

773


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

784


What is load-on-startup in servlet?

814


Which event is fired at the time of project deployment and undeployment?

1063


What is the difference between portlet and servlet?

717


What are the key methods that are involved in processing of http servlets?

872


Write a simple servlet program to print the contents of html.

789