ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Servlets
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
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.
 Question Submitted By :: Rajendra007
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
In servlets we have resource for developing the business 
logic but Jsp have the tags for present the output clerly.
 
Is This Answer Correct ?    1 Yes 0 No
Rajesh
 
  Re: 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
# 2
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 ?    0 Yes 0 No
Jitendra
 
 
 

 
 
 
Other Servlets Interview Questions
 
  Question Asked @ Answers
 
What are the exceptions thrown by Servlets? Amplify-Mindware3
can anybody send me j2ee softwares such as tomcat,weblogic server ,netbeans  2
Is it possible to send a mail from a servlet? Explain?  3
we cant Override Jsp Service method?Why? Mind-Tree2
Directive Include and Action Include how both are working in JSP, what is the difference between both?In which suituation we have to choose these elements? AZTEC4
how a servlet is instantiated, whether the container calls init() or by calling any other method? please somebody reply.. Siemens5
What is use of parseQueryString?  1
What is URL Rewriting ?  1
if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler Polaris3
What is the use of Servlets?  2
Can a servlet be called by passing its name as a parameter in the URL? iFlex1
can servlet have instance variables? Wipro6
i am bca student,give me suggest for bright future BSNL10
How we can check in particular page the session will be alive or not Symbiosis4
Is classes folder is compulsory in web-inf/ even though u r deploying ur application with war file? Bosch2
Why should we go for interservlet communication?  2
Why setMaxAge() and getMaxAge() methods are used in Cookies?  2
Name the webserver that is used to run Servlets?  5
How do you pass the data from one servlet to another servlet? HCL6
If you want to modify the servlet,will the Webserver need to be ShutDown ?  8
 
For more Servlets Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com