aspose file tools*
The moose likes Servlets and the fly likes JSP & Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP & Servlets" Watch "JSP & Servlets" New topic
Author

JSP & Servlets

Shantanu Puranik
Ranch Hand

Joined: Jun 10, 2004
Posts: 67
What are the Major difference between Servlet and JSP?


--- Shantanu
kamlesh tayade
Ranch Hand

Joined: Sep 21, 2005
Posts: 34
As Servlet is java class which having HTML tag and JSP is HTML tags having java sentex.
As JSP is mostly used for presentation work by HTML and Servlet is used for defining the logics of the work and web application working.


Kamlesh
Be oN edGE SCJP 1.4, on edGE for SCWCD 1.4
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

"kamlesh",

You have already received three warning to adjust your display name to adhere to JavaRanch standards. This is not optionla. Adjust your display name to be a first and a last name prior to your next post. Otherwise, your account will be closed.

bear
JavaRanch Sheriff
[ February 11, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
There is tons of free information out there that will get you a very good understanding of these 2 technologies. You may want to search google.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Talha Bin Hussain
Greenhorn

Joined: Feb 12, 2006
Posts: 6
hello,

JSP is Java code embedded in HTML; the Java code is compiled (if necessary) and run by the container on the server and the client only sees the results of that code's execution mixed in appropriately with the html.

Servlets are compiled pure Java class files (not mixed with HTML) that get posts from the client and send html to in return.

but both reqiured container on the server, such as Tomcat.
krishna yadav
Greenhorn

Joined: Feb 04, 2006
Posts: 9
Hi,

JSP technology extends the basic Servlet framework to enable easier and faster page authoring and maintenance in larger enterprises.

One difference between JSP and SERVLET is first time when we call jsp it will take time to respond , since server has to convert jsp to servlet and execute the component.
[ February 13, 2006: Message edited by: krishna yadav ]

Regards,<br />krishna yadav<br /><a href="http://www.geocities.com/srcsinc/java/Interview_Questions/Java_Interview_Questions.html" target="_blank" rel="nofollow">interview questions</a>
Albin Joseph
Greenhorn

Joined: Jan 22, 2005
Posts: 21
JSP is mainly used for presentaion logic only. But servlet can handle business logic also.

The main difference between servlets and JSP is servlets can supprot any type of protocol like SMTP, FTP.. But JSP supports HTTP protocol only


Java source code examples | Java coding community.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP & Servlets