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
Write a simple servlet program to print the contents of html.
What is Servlets and explain the advantages of Servlet life cycle?
What is the difference between the servlets and cgi programs?
What is Client-Server Computing?
What is the disadvantage of cookies?
What is a servlet context?
What is the capacity the doget can send to the server?
What do you understand by mime type?
What are the mechanisms used by a servlet container for maintaining session information?
Explain mvc pattern.
What is a servlet-to-servlet communcation?
Whether thread can be used in servlets?
Explain servlet life cycle?
How to find whether a parameter exists in the request object?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255