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
Differentiate between get and post?
What do you mean by cgi?
What are the types of protocols supported by httpservlet ?
What are the two important api's in for servlets?
what is multiple server?
What are important features of Servlet 3?
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!
What is the difference between a generic servlet and http servlet?
What are the important functions of filters?
What is session tracking?
What are the different methods involved in generic servlet?
What are the life cycle methods of the servlet?
What do you mean by httpservlet and how it is different from the genericservlet?
How will you pass values from HTML page to the servlet?
How does tomcat servlet container work?