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 are some disadvantages of storing session state in cookies?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What’s the difference between forward() and sendredirect() methods?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What is the purpose of requestdispatcher interface?
Why are servlets used?
What is Servlet API used for connecting database?
What do you mean by request dispatcher in servlet?
How can you start a jta transaction from a servlet deployed on jboss?
What is the procedure of invoking different servlet in a different application?
What are different ways for servlet authentication?
What is the disadvantage of cookies?
Which is the methods of generated servlet?
How can we upload the file to the server using servlet?
What do you mean by servlet?