jiten


{ City } mumbai
< Country > india
* Profession * associate software developer
User No # 39332
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 15
Users Marked my Answers as Wrong # 2
Questions / { jiten }
Questions Answers Category Views Company eMail




Answers / { jiten }

Question { 11080 }

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

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

Question { TCS, 8318 }

Hi friends, am newbie to servlet. My interviewer asked why
used servlet in your application.
i used servlet for controller logic and business logic .
is it correct ?


Answer

yes correct.And the answer should also include that because
servlet has some methods that are inherited from super class
like...init,destroy and many more that are used to handle
the request.

Is This Answer Correct ?    4 Yes 0 No