This week's book giveaway is in the JavaScript forum.
We're giving away four copies of JavaScript Promises Essentials and have Rami Sarieddine on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlets&Jsp-- doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets&Jsp-- doubt" Watch "Servlets&Jsp-- doubt" New topic
Author

Servlets&Jsp-- doubt

Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

What is the difference between servlets & Jsp?
where to use servlets & jsp?which is faster?i have doubt on these basic concepts .please explain.
Advance thanx.


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
A short look at the tutorials for Servlets and JSPs should answer the first question. A Servlet is a java class, whereas a JSP is an HTML page with some Java code embedded in it. An application server turns a JSP into a Servlet before running it.


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

also servlets uses objectorientsd concepts bcos its pulely java file rather jsp is web page.
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
say what ?
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Originally posted by Krishna Srinivasan:
also servlets uses objectorientsd concepts bcos its pulely java file rather jsp is web page.

nope . jsp's are servlets


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
 
Don't get me started about those stupid light bulbs.
 
subject: Servlets&Jsp-- doubt