Hi Frieds, I am new to servlet why to use servlet in
webapplication. what i know is " use servlet as a
controller in mvc and to implemnent business logic . is it
correct ? One more thing reason for implementing business
logic with servlets , why not jsp.
Answer Posted / syed
Servlet is a server side technology,for developing
serverside application(web applications).
In ModelI we use Servlet and Jsp's only.jsp used for
Presentation logic and Servlet used for Business logic & as
Controller.
Why because- 1.for communating with DataBase
2.for container(server)recognise java code.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is cgi?
What do you mean by mime type?
Who is responsible to create the object of servlet?
What is a deployment descriptor?
How is a servlet implemented in code?
What are the types of protocols supported by httpservlet ?
What is the type of method for sending request from http server?
Explain the jar and war files in servlet?
What are the differences between the servletconfig interface and the servletcontext interface?
Which application server is best for java?
How to make sure a servlet is loaded at the application startup?
What is the directory structure of a war file?
What are the annotations used in servlet 3?
What is servlet name in web xml?
What if you need to span your transaction across multiple servlet invocations?