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
Can we get PrintWriter and ServletOutputStream both in a servlet?
If servlet receives multiple requests, how many objects will it create?
What is servlet interface?
Can we fetch the attributes related to a servlet on a different servlet?
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 is the use of java servlet api?
Whats the advantages using servlets over using CGI?
Write the code to get the server information in servlet.
How are filters?
What are the different ways we can maintain state between requests?
Difference between GET and POST?
Explain mvc pattern.
How httpservlet is different from the genericservlet?
What are the types of servlets? Explain
What are the kinds of http requests?