J2EE

J2EE is an abbreviation for Java 2 Enterprise Edition—a bucket of technologies that includes, among other things, the standard Java framework for building Web applications. The main Web-related components of J2EE are Java servlets, which are quite similar to CGI programs except that they’re written in Java, and JavaServer Pages, which are essentially HTML pages that can have Java code embedded within them.

Servlets and JSP are complementary, not alternatives. Generally, large systems are built using both servlets and JSPs—the hard core processing is written using servlets, and the information is presented to the user using a JSP. That’s one option. You can also write servlets that print out HTML (such as CGI scripts), or you can write JSPs ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.