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
Explain servlet.
What are the exceptions thrown by servlets? Why?
What are the steps that are required to handle the multi-threading?
What are the different mode that servlets can be used?
What do you mean by request dispatcher in servlet? Also explain its methods.
What is URL Encoding?
What are the supporting protocol by HttpServlet ?
How forward () method is different from send redirect () method?
What do you mean by filter in servlet?
What is cookies in servlet with example?
What is the main purpose of java servlets?
What is the difference between encodeRedirectUrl and encodeURL?
Explain in brief the directory structure of a web application?
What is called Scriptlet?
How to get the current httpsession object?