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 called a session?
If some new data has entered the database, explain how can a servlet refresh automatically?
What are Servlets?
Name the different ways of session tracking.
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
How can you push data from an Applet to a Servlet?
List out difference between a JavaBean from a Servlet?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
How can the session in servlet can be destroyed?
What’s the difference between genericservlet and httpservlet?
Difference between GET and POST?
What are the kinds of http requests?
What do you mean by servlet?
What is the difference between Difference between doGet() and doPost()?
What are the features added in Servlet 2.5?