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 a cookie What is the difference between session and cookie

1138


Is servlet thread safe?

1038


How can a servlet be used to generate plain text instead of html?

995


What is http servlet in java?

1115


What are the new features added to servlet 2.5?

1153


What if you need to span your transaction across multiple servlet invocations?

1139


What are the various ways of session supervision in servlets?

1067


What are the objects involved when a servlet receives a call from client?

1089


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

2441


How to commuincate between an applet and a servlet?

1099


What is the difference between CGI and Servlet?

1125


What is servlet and list its types?

1126


Write all the phases defined in servlet life cycle?

1244


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2738


What do you mean by deployment descriptor?

1126