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 / p.a.v.k.prasad
in Many projects we can't write any BL in servlets and JSP's.
Write it in seperate class(Helper class). and just call to that helper class in u r servlet class.
bcoz if u write a BL in u r servlets(BL may be chenge from one senario to another) then again change in the servlets and redeploying........burden to the container........
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the major difference between context parameter and context attribute?
How can you create a session in servlet?
What are the phases of the servlet life cycle?
Can you send an authentication error from a servlet?
Can you explain in detail 'javax.servlet' package?
Define the lifecycle for executing a jsp page.
What are the life cycle methods of a servlet?
How servlets are deployed in java?
Why doesn’t a servlet include main()?
Why are http servlets used in programming?
Is dispatcher servlet a singleton?
What are the functions of the servlet container?
What is difference between GenericServlet and HttpServlet?
What is the inter-servlet communication?
Difference between doget and dopost?