This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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: 12868
    
    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>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Differences b/w Jsp and Servlet