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


Please Help Members By Posting Answers For Below Questions

What is the major difference between context parameter and context attribute?

601


How can you create a session in servlet?

602


What are the phases of the servlet life cycle?

616


Can you send an authentication error from a servlet?

531


Can you explain in detail 'javax.servlet' package?

556






Define the lifecycle for executing a jsp page.

599


What are the life cycle methods of a servlet?

601


How servlets are deployed in java?

552


Why doesn’t a servlet include main()?

567


Why are http servlets used in programming?

554


Is dispatcher servlet a singleton?

554


What are the functions of the servlet container?

1045


What is difference between GenericServlet and HttpServlet?

571


What is the inter-servlet communication?

707


Difference between doget and dopost?

686