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
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What is the inter-servlet communication?
How servlets are deployed in java?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
What is webservlet?
How can you start a jta transaction from a servlet deployed on jboss?
Why servlet is mostly used?
What is java servlet?
How many objects of a servlet is created?
What are the benefits of using servlet over cgi?
Is dispatcher servlet a singleton?
Explain the architechure of a servlet?
Is servlet a framework?
Describe in brief RequestDespatcher?
What is servlet? Explain