why are extending GenericServlet and why are extending
HttpServlet explain?
Answer Posted / dinesh goud
with out extending those servlets,we have to write all the methods in Servlet interface..............In order to write all the methods in Servlet interface.we go for extending GenericServlet and HttpServlet............
public UserServlet implemetns Servlet
{
provides bodies for all methods;
}
public UserServlet extends GenricServlet
{
provides bodies for methods ur wish and well
}
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What do you mean by cgi and what are its drawbacks?
Explain the servlet filter.
What is the disadvantage of cookies?
When a servlet accepts a call from a client, it receives two objects. What are they?
Explain is servlet mapping?
When should you prefer to use doget() over dopost()?
What are the different ways we can maintain state between requests?
Servlet is pure java object or not?
Why the concept of single thread model interface is used?
What is servlet in tomcat?
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 called Session Tracking?
how many jsp scripting elements are there and what are those?
What are the annotations used in servlet 3?
What's the difference between servlets and applets?