why business logic written using servlets not in jsp. Jsp
used for presentation purpose. serlvet used for coding
business logic and controller logic. Reason for using
servlets in business logic.
Answer Posted / jitendra
Its for reusability purpose.jsp should be only used for
presentation purpose and our html designer,who later design
the page is not aware of java coding will not be comfortable.
and writing all buiseness logic in servlet lets the code
reusable.and for writing buiseness logic in jsp page there
are some other way like using scriplets.so why do the job
with less profit and extra work.
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
Explain Action Servlet?
How do you find out what client machine is making a request to your servlet
What are the functions of an intercepting filter?
How can you create a session in servlet?
How do you get the ip address of the client in servlet?
What are the phases of servlet life cycle?
What is Servlet API used for connecting database?
What are the important functions of filters?
Why session tracking is needed?
What are the life cycle methods of a servlet?
Explain web container.
Which java framework is most popular?
How do I use cookies to store session state on the client?
What is the difference between Servlets and Applets?
What is the directory structure of a war file?