File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Differences b/w Jsp and Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Differences b/w Jsp and Servlet" Watch "Differences b/w Jsp and Servlet" New topic
Author

Differences b/w Jsp and Servlet

Majid Khan
Ranch Hand

Joined: Oct 02, 2000
Posts: 92
Can anyone list the DIFFERENCES between the two
apart from the fact that Jsp can use static html content
Servlet do not have any user interface content
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12821
    
    5
A JSP is just a convenient way of generating a servlet, especially if the page you need to generate has a lot of HTML markup that would be inconvenient to generate from lots of print statements in a servlet.
One neat thing in JSP is the custom tag library. If your web pages must be generated by web designers who don't know or want to know any Java, you may be able to set them up with a toolkit of custom tags so they won't have to bother the programmers for every little change.
Bill
<plug>Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2 </plug>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Differences b/w Jsp and Servlet