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 a cookie What is the difference between session and cookie
Is servlet thread safe?
How can a servlet be used to generate plain text instead of html?
What is http servlet in java?
What are the new features added to servlet 2.5?
What if you need to span your transaction across multiple servlet invocations?
What are the various ways of session supervision in servlets?
What are the objects involved when a servlet receives a call from client?
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!
How to commuincate between an applet and a servlet?
What is the difference between CGI and Servlet?
What is servlet and list its types?
Write all the phases defined in servlet life cycle?
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?
What do you mean by deployment descriptor?