This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP/Servlets" Watch "JSP/Servlets" New topic


tokunbo fagbamigbe

Joined: Mar 28, 2001
Posts: 5
Please could you in clear terme tell me the difference between JSP and Servlets and the advantages of each. Also could you let me know what the advantages of JSP are over ASP and vice versa

Peter Tran

Joined: Jan 02, 2001
Posts: 783
I think this question is more appropriate in the "Servlets and JSP's" forum, so I'm moving it there.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Just as a start,

A JSP is an 'easier' way to write a servlet. JSP's are compiled, and end up as servlets that output HTML. So JSP's are used as a presentation technology.

Servlets "extend the functionality of the web server". What this means in english, is that you can write a servlet that does no actual HTML output.. but simply act as a CGI to accept (for example) a bunch of form data, push it into a database, and then redirect to a response page.

ASP vs. JSP ?? That oughta be fun.
Gary Guion

Joined: Jun 21, 2001
Posts: 23
Can a bean replace a servlet? Which one is better?
I agree. Here's the link:
subject: JSP/Servlets