what is servlet and what you get when we use servlets?
Answer Posted / nag sekhar(mca)
Servlet is an object which provides the implementation of
servlet interface directly or indirectly.
For example servlet program can be written by implementing
the servlet interface or by using HttpServlet class like
"public class ServletExample extends HttpServlet". The class
HttpServlet implements the Servlet interface which is
indirect implementation of Servlet.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is cgi?
How is the get () method different from the post() method?
What are different methods of session management in servlets?
What is the use of java servlet api?
What are the important functions of filters?
What is the use of welcome-file-list?
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!
How to get the path of servlet in the server?
What are the advantages of servlets over traditional cgi?
What is the importance of init() method in Servlet ?
How we can call a jsp from the servlet?
What are the uses of servlet and what is servlet chaining?
What do you mean by httpservlet and how it is different from the genericservlet?
What are the types of servlets? Explain
How to get the current httpsession object?