New York
home > Java Email
On this page: 
servlets, JSP
Servlets home - top of the page - email

Servlets - server side, replacement for CGI scripts (serving dynamic web content, maintaining state information, session tracking, database connectivity using JDBC, applet-servlet communication). "Third-party Servlet containers are available for Apache Web Server, iPlanet Web Server (formerly Netscape Enterprise Server), Microsoft IIS, and others. Servlet containers can also be integrated with web-enabled application servers, such as BEA WebLogic Application Server, IBM WebSphere, Netscape Application Server, and others."  -  introduction to servlets - Java Servlet API home page, the first stop for any servlet developer.  - short JSP reference (in PDF)
Servlet Central, an independent on-line magazine dedicated to servlets and server-side Java programming., a site primarily dedicated to promoting Jason Hunter's book, "Java Servlet Programming" (O'Reilly & Associates, 1998), which is an excellent resource and highly recommended for all servlet programmers. - good source - Java Exchange - servlet-based database access (Oracle & Solid).
Tutorial on Servlets and JavaServer Pages (JSP), by Marty Hall. A comprehensive resource with free source code examples. - Understanding JavaServer Pages Model 2 architecture. Very good article. pushlets

JSP home - top of the page - email

JSP or Template engines? - "The Problems with JSP" (by Jason Hunter). - follow-up on "The Problems with JSP" - WebMacro - Cocoon - Turbine - freemarker - OTembo - an Open Template-Based Servlet System - ECS - XMLC - XMLC - XSLT - Struts Framework (open source) - to build web applications with Servlets and JSP

Servlet Engines home - top of the page - email

Which servlet engine to use? - JServ from Apache ( installation ) -
Q: What is the Difference Between Tomcat and Jserv? Isn't Tomcat==Jserv? -
A: "This is a common misunderstanding.
-- Jserv is a Servlet API 2.0-compliant container that was created to be used with Apache. It doesn't have JSP support.
-- Tomcat is a reference implementation, a complete re-write and is a Servlet API 2.2 and JSP 1.1-compliant container. Tomcat uses some of the code written for Jserv, especially Jserv's Apache server adapter, but this is where the similarities end."
Apache + jrun ( ) - servlet + JSP support - Resin (free) - ServeltExec (low cost)

Here are interesting comparisons: - according to these benchmarks, their own product (Resin, free open source JSP/Servlet engine) is faster than mod_perl !!

Apache - Java Related Projects home - top of the page - email

JServ - servlet engine - 100% pure Java servlet engine fully compliant with the JavaSoft Java Servlet APIs 2.0 specification. Works on any "version 1.1 compliant" Java Virtual Machine and may execute any Java servlet compliant with version 2.0.
Cocoon - XML project - Cocoon.  The most common use of Cocoon is the automatic creation of HTML through the processing of statically or dynamically generated XML files. Cocoon is also able to perform more sophisticated formatting, such as XSL:FO rendering on PDF, client-depending transformations such as WML formatting for WAP-enabled devices or direct XML serving to XML and XSL aware clients.

Jakarta - Servlet & JSP - The flagship product, Tomcat, is a reference implementation of the Java Servlet and JSP (Java Server Pages) Specifications which can run standalone as well as integrated into the Apache Web Server. - Xerces - XML parsers in Java, C++ (with Perl and COM bindings) (see much more XML stuff at my XML page.

Xalan - Apache's Xalan provides an XSL transformation (XSLT) engine -

EJB, J2EE home - top of the page - email

Java Beans - Java's component architecture.
EJB- Enterprise JavaBeans - a standard for server-side components (specification 1.0 was introduced in March 1998). Currently EJB is part of J2EE (Java 2 Enterprise Edition).
EJB run inside a container (application server) such as IBM WebSphere, BEA WebLogic, and others.

There are 2 types of EJB:
session beans - function similar to servlets
entity beans - has persistence (usually via mapping to a database). Thus entity beans are slow.

Using EJB compliant distributed business objects:
significantly simplifies development
automatically assures security, resource pooling, persistence, concurrency and transactional integrity.


Old-fassion 3-tier architecture: Modern approach:
presentation "green screen" (dumb terminal) presentation = GUI (Java, browser-based, etc.)
business logic procedural program in COBOL or PL/1 servlets, EJB-compliant distributed business objects
database DB2 database(s)

Books: - Enterprise Javabeans by Richard Monson-Haefel (2nd ed.) 
     - also his web site
     - - download examples
Mastering Enterprise JavaBeans and the Java 2 Platform, Enterprise Edition
Java 2 Platform, Enterprise Edition (By Shannon, et al)
Designing Enterprise Applications with the Java 2 Platform, Enterprise Edition (by N.Kassern et al)
Professional Java Server Programming: with Servlets, JavaServer Pages (JSP), XML, Enterprise JavaBeans (EJB), JNDI, CORBA, Jini and Javaspaces (by Andrew Patzer et al)
Professional Java 2 Enterprise Edition with BEA WebLogic Server -- Francisco Gomez, Peter Zadrozny; Paperback

EJB is roughly similar to Microsoft's COM / DCOM (Component Object Model/Distributed Component Object Model architecture), but EJBs can be deployed across all major operating systems, not just Windows. - Enterprise JavaBeans home page - a list of EJB application server providers - BEA Systems' WebLogic - WebSphere Application Server - The Enterprise JavaBeans Specification 1.1 - Enterprise JavaBeans Tutorial: Building Your First Stateless Session Bean