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 effective way to make sure all the servlets are accessible only when user has a valid session?
Write a program to show the functionality of servlets.
Explain servlet.
Define the lifecycle for executing a jsp page.
Define the life cycle of a servlets.
How can the referrer and the target urls be used in servlet?
Explain session tracking and its importance?
How can we perform any action at the time of deploying the project?
What is the inter-servlet communication?
What is a servlet context?
How to make sure a servlet is loaded at the application startup?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
What is the
Explain the difference between servlet and cgi?
What are the types of servlet?