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 difference between Difference between doGet() and doPost()?
How can I send user authentication information while making URL Connection?
Which httpsession object is used to view and manipulate information about a session?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com
What is called servlet container?
What are all the protocols supported by httpservlet?
Explain the difference between generic servlet and http servlet?
What is meant by Servlet? What are the parameters of service method?
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
What is the main purpose of java servlets?
What do you mean by httpservlet and how it is different from the genericservlet?
What is servlet and how it works?
How can we include static files in the jsp page?
How can we achieve transport layer security for our web application?