Web Server Java: Servlets and JSP
This chapter covers Web Server Java, but you won't find anything about writing CGI programs in Java here. Although it would be entirely possible to do so, it would not be efficient. The whole notion of CGI programs is pr
Web Server Java: Servlets and JSP
This chapter covers Web Server Java, but you won't find anything about writing CGI programs in Java here. Although it would be entirely possible to do so, it would not be efficient. The whole notion of CGI programs is pretty much passe. Every time a CGI program is invoked, the web server has to create a new heavyweight process in which to run it; this is inefficient. If it's interpreted in Java, the program has to be translated into machine code each time; this is even more inefficient.
Today's trend is toward building functionality into the web server: Microsoft ASP, PHP3, Java servlets, and JavaServer Pages? (JSP) are examples of this. None of these normally requires a separate process to be created for each request; the Java-based solutions run in a thread (see Chapter 24) inside the web server, and the Java bytecode need only be translated into machine code once in a long while, assuming a just-in-time (JIT) runtime system. Naturally, this book concentrates on the Java solutions.
Web Development with JavaServer Pages Web Development with JavaServer Pages (Second Edition) is a comprehensive guide to JSP technology, covering everything from JSP fundamentals to application design and deployment. The introductory chapters focus on basic JSP principles and underlying JSP technologies. Later chapters introduce more advanced concepts, including tag libraries, servlet filters, and database connectivity. The second edition is updated to cover JSP 1.2's full feature set, and both the advantages and the "gotchas" associated with those features.
A web applications developer and Internet technologist, Duane K. Fields is an expert in the design and development of leading edge Internet applications. He lives in Austin, Texas.
JSP This chapter will examine a variety of ways to architect a system with JavaServer Pages, Servlets, and JavaBeans. We will see a series of different architectures, each a development of the one before. The diagram below shows this process in outline; the individual parts of the diagram will be explained in turn later in the chapter.When Sun introduced Java ServerPages, some were quick to claim that Servlets had been replaced as the preferred request handling mechanism in web-enabled enterprise architectures. Although JSP is a key component of the Java 2 Platform Enterprise Edition (J2EE) specification, serving as the preferred request handler and response mechanism, we must investigate further to understand its relationship with Servlets. For all the latest information on J2EE, including documentation relating to some of the issues discussed in this chapter, please refer to http://java.sun.com/j2ee.
Servlets and JavaServer Pages
The Java 2 Platform has become the technology of choice for developing processional e-commerce applications, dynamic Web pages, and Web-enabled applications and services. Servlet and JSP technology is the foundation of this platform: it provides the link between Web clients and server-side applications. But the field has been evolving rapidly, and few developers have been able to keep up. In this new companion to the worldwide bestseller Core Servlets and JavaServer Pages, Marty Hall shows you how to apply recent advances in servlet and JSP technology. The book provides everything you need to know to leverage the latest servlet 2.3 and JSP 1.2 standards: real-world insight, advanced techniques, industrial-strength code, and hands on coverage of three top servers: Apache Tomcat, Macromedia JRun, and New Atlanta ServletExec.
JSP Tag Libraries
JSP Tag Libraries is a definitive guide to creating custom JSP tag libraries for server-side Java applications. It introduces concepts gradually, guiding the user through basic tag techniques like iteration, nesting, and modifying body content. Later chapters introduce more advanced tag development functionality such as database interaction, J2EE integration, and use with JavaBeans. The book is loaded with sample code and valuable tags that offer functionality such as sending email, retrieving cookie values and evaluating complex conditions. JSP Tag Libraries also includes two case studies: a JDBC technology-driven Web store and an EJB technology-driven WAP store.
JSP Second Edition
Professional JSP 2nd Edition is for professional programmers who want to use JavaServer Pages (JSP ) technology and servlets to create the web front end of their J2EE applications. No knowledge of JSP pages or servlets is required, but the reader is assumed to be familiar with the Java programming language and the core APIs.The book itself covers the fundamentals of web programming with JSP pages and servlets, the design and implementation of tag libraries, JSP with JDBC technology and XML, authentication, content transformation using Servlet 2.3 filtering, the Jakarta Struts project and the role of JSP and servlets in J2EE. Each of these subjects is explained with example code.
Advanced JavaServerTM Pages
The JDC is proud to present Advanced JavaServer Pages, which features detailed chapters on internationalization, authentication, JSP technology templates, design, and XML. It concludes with a comprehensive case study that ties together key topics developed in the book and demonstrates how to integrate advanced techniques based on JSP technology. This book is a must-have resource for every developer of Java technology creating server-side applications with JSP technology and servlets.
To fully exploit the power of JavaServer Pages technology in Web Application development based on J2EE technology, you need to master the sophisticated server-side techniques that David Geary presents in Advanced JavaServer Pages.
Professional Java Server Programming
The JDC is proud to present two chapters from Professional Java Server Programming, J2EE Edition, by multiple authors (see below), and published in September 2000 by Wrox Press Ltd.
This book focuses on how to develop server-side Java applications based on the J2EE specification, and the practical aspects of real-world design using J2EE technologies.
This book demonstrates how the J2EE architecture allows you, the developer, to concentrate on writing the key logic for your business component. Through comprehensive coverage of the servlet, JavaServer Pages and Enterprise JavaBeans technologies, this book demonstrates how to design and construct secure and scalable n-tier applications. You'll see how JSP pages allow you to separate business and presentation logic, how Enterprise JavaBeans (EJBs) can be used to model your data, and how to integrate with other systems using CORBA, XML, and the Java Messaging Service.
The JSP Insiders actively participate in the open-source Java, JavaServer Pages, and Servlets communities. While working as full time Java consultants, we are constantly giving talks at conferences, writing articles and tutorials, and even publishing complete books. Here is a current listing of all the available content authored by the JSP Insiders, all free, no registration required. If you are interested in links to JSP and Servlet content found anywhere on the World Wide Web, we also provide a comprehensive list of links in the link section.