Servlets and JSP: An Overview Page 3

By ServerWatch Staff (Send Email)
Posted Dec 7, 1999

What is JSP?

Java Server Pages (JSP) is a technology that lets you mix regular, static HTML with dynamically-generated HTML.

Many Web pages that are built by CGI programs are mostly static, with the dynamic part limited to a few small locations.

But most CGI variations, including servlets, make you generate the entire page via your program, even though most of it is always the same.

JSP lets you create the two parts separately.

Here's an example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HEAD><TITLE>Welcome to Our Store</TITLE></HEAD>
<H1>Welcome to Our Store</H1>
<SMALL>Welcome back, 
To access your account settings, click
<A HREF="Account-Settings.html">here.</A></SMALL>
Regular HTML for all the rest of the on-line store's Web page.

Page 3 of 4

Comment and Contribute

Your name/nickname

Your email

(Maximum characters: 1200). You have characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date