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
What is the web server used for running the Servlets?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
What's the use of servletcontext?
Is tomcat a servlet container?
What do you mean by scope object and what are its types?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
What is servlet and how it works?
What is session?
What are the type of protocols used in httpservlet?
explain the advantages of servlet life cycle?
What are the mechanisms used by a servlet container for maintaining session information?
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
Can you send an authentication error from a servlet?
How can an existing session be invalidated?
When a servlet accepts a call from a client, it receives two objects. What are they?