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



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

Answer / 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

More Servlets Interview Questions

Can you call a jsp from the servlet?

1 Answers  


Difference between get and post in java servlets?

1 Answers  


Explain the concept of ssi ?

1 Answers  


Is the init(ServletConfig sc) throws IOException or not?

3 Answers  


What is the difference between genericservlet and httpservlet

1 Answers  


Can we override servlet service method?

1 Answers  


What do you mean by cgi?

1 Answers  


How to invoke a Servlet?

2 Answers   Mastek,


why are extending GenericServlet and why are extending HttpServlet explain?

7 Answers  


how a user session can be tracked in servlets?

1 Answers  


What are different types of SessionTracking?

2 Answers  


Are Servlets by default thread safe or not? thanks in advance regards Sudhakar

3 Answers  


Categories