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  >>  Scripts  >>  JSP
 
 


 

 
 PHP interview questions  PHP Interview Questions
 ASP interview questions  ASP Interview Questions
 CGI Perl interview questions  CGI Perl Interview Questions
 JavaScript interview questions  JavaScript Interview Questions
 VB Script interview questions  VB Script Interview Questions
 JSP interview questions  JSP Interview Questions
 Shell Script interview questions  Shell Script Interview Questions
 Python interview questions  Python Interview Questions
 Tcl interview questions  Tcl Interview Questions
 Awk interview questions  Awk Interview Questions
 AJAX interview questions  AJAX Interview Questions
 Ruby on Rails interview questions  Ruby on Rails Interview Questions
 Scripts AllOther interview questions  Scripts AllOther Interview Questions
Question
What is the difference between JSP and Servlet?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between JSP and Servlet?
Answer
# 1
Servlets are pure java programs.here we can't use HTML.
But in JSP we use HTML,so we can use and modify the data 
very easily.
   Servlets are faster than JSP.bcoz while running JSP 
programs it will be converted into Servlets and then 
executed,so it takes more time.
 
Is This Answer Correct ?    6 Yes 2 No
Pratheeka Reddy
 
  Re: What is the difference between JSP and Servlet?
Answer
# 2
Servlets are pure java codes,here we can't used HTML.
But in JSP we can use HTML,so we can modify and also 
updated the data.
Another difference In Servlet  clientside validation is 
possible But in jsp clientside validation is not possible.
 
Is This Answer Correct ?    4 Yes 2 No
Malay
 
 
 
  Re: What is the difference between JSP and Servlet?
Answer
# 3
Both servlet and jsp are web components. But servlet is 
best suited for request processing, handling the business 
logic while jsp is suitable for content generating .Its 
easy to include html tag in jsp rather than servlet.Also 
jsp is compiled to servlet when first loaded to 
webserver.So in many framework servlet act as a controller 
while jsp as a view.Also implicit object and action 
elements available in jsp but not in servlet.
 
Is This Answer Correct ?    7 Yes 1 No
Satyabrata
 
  Re: What is the difference between JSP and Servlet?
Answer
# 4
Jsp is better for preparing presentation pages, while 
servlet is good for request processing as it's more 
difficult to write include, forward a static or dynamic url 
with in out.println() ,

Jsp has also all implicit objects, we need not have to 
instantiate any which is easier.

error handelling is easy in jsp isErrorPage="true" 
errorPage="/page"

we need not have to bother about init(),service(),destroy
(),doGet(),doPost()in jsp.

in servlet for each time changing we have to explicitly 
compile it.

Jsp automatically compiled by container when we reload the 
page.
 
Is This Answer Correct ?    4 Yes 0 No
Ranjan Satapathy
 
  Re: What is the difference between JSP and Servlet?
Answer
# 5
Jsp mainly used for the presentation only.It support only 
Http. whereas servlet support FTP,Http etc
 
Is This Answer Correct ?    1 Yes 4 No
Vaidegi
 
  Re: What is the difference between JSP and Servlet?
Answer
# 6
1-The most important difference is that whenever we do some
changes in a servlet we need to build the application
completely but no need to do the same in case of jsp....
 
Is This Answer Correct ?    0 Yes 0 No
Xxxxxx
 

 
 
 
Other JSP Interview Questions
 
  Question Asked @ Answers
 
how to enable session tracking for jsp pages,if the browser has disabled cookies?  2
how can we retrieve the values in jsp by using custom tags Wipro3
What Do you Mean By Object Serialization in java. Accenture2
What are implicit objects?  3
Are application, pageContext and object of ServletContext same or not?  2
What is the difference between <jsp:forward> and sendRedirect? HCL4
what is difference between redirect and forward method? Wipro6
can i use vb script with jsp?  3
How do you restrict page errors display in the JSP page? IBM1
hi i m tannu and i m developing one web site as my project and i have created one chatting application using applet and socket it run perfactly using netbeans5.5 and appletviewer but when i run on browser it doent run i put it class file in jar file then call by jsp when it load in browser it stop on applet started plz help me soon  2
What is the use of Application Object and Session Object in JSP? HCL4
What are JSP ACTIONS?  2
How to works asjx in jsp?  1
What is JSP?  2
Can we use methods in JSP? If so where the methods are stored in servlet class file? Persistent2
how to print a string with out using out.println? Elementus-Technologies2
How To maintain session ..? TCS3
how can i get a scjp certification??  2
How does JSP handle run-time exceptions? IBM2
which situation you use static include and dynamic include in jsp? L&T1
 
For more JSP 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