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.
Answers were Sorted based on User's Feedback
Answer / syed
Servlet is a server side technology,for developing
serverside application(web applications).
In ModelI we use Servlet and Jsp's only.jsp used for
Presentation logic and Servlet used for Business logic & as
Controller.
Why because- 1.for communating with DataBase
2.for container(server)recognise java code.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / ashok kannan
To build a dynamic web page servlets are used.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / 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 |
i have class files in class folder. but i have no java files. but i want to modify the java files which are related to class files . how ?
How servlets are deployed in java?
What is dispatcher servlet?
How do you communicate in between Applets and Servlets?
i need connection pooling code.....from harpreet.your@gmail.com
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
What is the difference between sendredirect() and forward() in a servlet?
Where do you define dispatcherservlet?
Write a simple servlet program to print the contents of html.
Can we override destroy method in servlet?
How does Cookies work in Servlets?
What is servlet in simple terms?