Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


A Brief Introduction to Servlets and JSP

April 5, 2000

In this article we will discuss only HTTP servlets and hence when we mention servlet we mean HTTP Servlet.

A Servlet, in simple terms, is a Java program running under a web server taking a 'request' object as an input and responding back by a 'response' object.

Typically a web browser will send the request in HTTP format. The servlet container will convert that into a request object. Similarly the response object - populated by the servlet is converted into an HTTP response by the servlet container.

This mechanism makes the browser - web server interaction very easy.

You can check the Advantages of Servlets at JavaBoutique: What are the Advantages of Servlets over Traditional CGI?

A Java Server Page (JSP) is syntactically very similar to ASP except for the programming language / Script which is Java in case of JSP.

So similar to ASP one can embed the java code within <% and %> tags with rest of your HTML code , in the same file. The code within <% and %> tags: the Java code is executed on the server and the HTML part with evaluated java code (result) is passed to the requesting client.

You can check advantages of JSP at  What are the Advantages of JSP?

Here are the links to parts of Sun web site about Servlet, Java Servlet API and JavaServer Pages (JSP).

Building Web Applications Using Servlets and JSP
Building Web Applications Using Servlets and JSP
Servlet


Up to => Home / Authoring / Java / Servlets




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers