This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Differences b/w Jsp and Servlet" Watch "Differences b/w Jsp and Servlet" New topic

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

Joined: Mar 22, 2000
Posts: 13027
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.
<plug>Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2 </plug>
I agree. Here's the link:
subject: Differences b/w Jsp and Servlet
It's not a secret anymore!