Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 effective way to make sure all the servlets are accessible only when user has a valid session?

1024


Write a program to show the functionality of servlets.

983


Explain servlet.

1014


Define the lifecycle for executing a jsp page.

1046


Define the life cycle of a servlets.

1025


How can the referrer and the target urls be used in servlet?

964


Explain session tracking and its importance?

974


How can we perform any action at the time of deploying the project?

1082


What is the inter-servlet communication?

1144


What is a servlet context?

1109


How to make sure a servlet is loaded at the application startup?

1009


If my browser does not support cookie, and my server sends a cookie instance what will happen?

1057


What is the element?

1017


Explain the difference between servlet and cgi?

1127


What are the types of servlet?

1239