What is Generic Servlet and how it is different from Http
Servlet?
Answer Posted / l sujata
Actually generic sevlet class is a super class of
HttpServlet class.both of these classes are abstract in
nature.As in generic servlet service () methob is not
defined so they r defined in HttpServlet class. as we are
not interested to create an object of HttpServlet class
so,we make it as abstract class and class that implemnts
HttpServlet Class creates objects and uses three methods
such as init(),service(),destroy() mainly.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
how many jsp scripting elements are there and what are those?
What is the directory structure of a war file?
What is the process to implement doget and dopost methods?
Explain the lifecycle of a servlet?
What are the differences between the servletconfig interface and the servletcontext interface?
Can we use threads in Servlets?
Is servlet a server side scripting language?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is load-on-startup in servlet?
What are the types of an http request?
What are the different ways we can maintain state between requests?
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 cookies in servlet with example?
What exception should be thrown when servlet is not properly initialized?
What is meant by a web application