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
Explain mvc pattern.
How to find whether a parameter exists in the request object?
What is meant by session? Tell me something about httpsession class?
How native code can be used in a servlet?
How do we share data using 'getservletcontext ()?
What is http servlet in java?
How can the session in servlet can be destroyed?
Explain the difference between jsp and servlet?
What are the phases of servlet life cycle?
What is the difference between the include() and forward() methods?
Explain the difference between a web server and a web container?
What is meant by servlet? What are the parameters of the service method?
How to make sure a servlet is loaded at the application startup?
What must be implemented by all servlets?
Which httpsession object is used to view and manipulate information about a session?