File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets and JSP

 
parnini gavande
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just started learning servlets
I want to know the difference between Servlets And JSP
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Server Pages are just another way of creating a servlet, using a mixture of HTML and specialized tags. The idea with JSP is to insulate the designer of HTML pages from the nitty-gritty details of servlet programming.
Bill

------------------
author of:
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parnini:
As William stated, JSPs are (preferably) used to display dynamic content on your browser while Servlets are used to control the flow in a Web site, while communicating with other components (like EJBs) to gather data to be displayed later by the JSPs.
Technically, JSPs are compiled into Java Servlets and at the moment of execution they are indistinguishable from regular servlets by the Servlet Container.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic