LET'S CONNECT!
Enter for a chance to win an eBook of your choice from InformIT. Fill out the form.
Register your product to gain access to bonus material or receive a coupon.
Build dynamic, database-driven Web sites with Java technologiesstep by step!
Now, there's a start-to-finish guide to using Java and open source technologies to create cost-effective, scalable Web sites. In JSP and Java, Art Taylor presents real-world scenarios and code examples that leverage today's key Java and open source technologiesincluding JSP, JavaBeans, the Apache HTTP server, Tomcat JSP/servlet server, and the PostgreSQL database.
Taylor begins by introducing Java-based Web sites: their advantages, key components, and architectural attributes. Then, using powerful Java design patterns, he constructs a complete Web site using Java and open source toolspresenting extensive, carefully documented code examples throughout. JSP and Java covers:
JSP and Java is the first book to cover all the technologies needed to build Java-based Web sites. If you're ready to achieve the full promise of enterprise Web development, this is the book you've been searching for.
Preface.
Acknowledgments.
1. The Web Takes Over.
Introduction. Open Source Solutions. History of Java. Benefits of Java. Web Infrastructure. Java Web Site Overview. Summary. Coming Up Next.
Introduction. The Operation of the Web Server. Background on Apache. Configuration File: httpd.conf. Testing the Apache Environment. Summary. Coming Up Next.
Database in the Web Infrastructure. Background. Running PostgreSQL. Installing PostgreSQL. Configuring PostgreSQL. Using the JDBC Driver. Summary. Coming Up Next.
Introduction. Processing Environment. JSP Environment. Installation of Tomcat. Configuration Files. Interceptor Definitions. Summary. Coming Up Next.
Introduction. Web Application. Configuring Apache to Communicate with Tomcat/Jakarta. Pulling It All Together. Testing the Link of Apache to Tomcat. Recommendations. Locating Class Files for Resources. Summary. Coming Up Next.
Introduction. Reason for Java Server Pages. Java Server Pages Development. How JSP Works. JSP Syntax and Usage. Element Syntax. Comments in JSP. Implicit JSP Objects. Directives. JSP Tags. Summary. Coming Up Next.
Introduction. Application Components. Design Patterns. Summary. Coming Up Next.
Introduction. Java Software Components: JavaBeans and Enterprise JavaBeans. Using JavaBeans with Java Server Pages. A JSP/JavaBeans Example. JSP Example: The Calendar JavaBean. JavaBeans versus Custom Tag Libraries. JSP Calendar: JavaBean Code. Using Custom Tags in JSP. Using a Custom Tag Library: The JSP Calendar Utility. JavaBeans or Custom Tag Libraries: Tips on Use. Summary. Coming Up Next.
Introduction. Discussion Group System: Application Description. Application Flow for the Message System. Technical Description of the Message System. Summary. Coming Up Next.
Introduction. Organization of the Discussion Group System. Message System Application Flow. The Rest of the Story: JSP and JavaBeans Code Explained. Building Dynamic HTML Tables with JSP: The Posted Messages Page. Building the Dynamic Table. Performing Input with JSP: The Message Update Page. Summary. Coming Up Next.
Introduction. Data Access Objects Description. Simple DAO: CategoryDAO. Database Utility Class: DBUtil. Complex DAO: Knowledge_baseDAO. Summary. Coming Up Next.
Introduction. The Goal. Advantages of Using Multiple Servers. Apache and Tomcat Integration. Using Apache to Provide Login Authentication Services. Integrating with the PostgreSQL Database. Deploying the Discussion Group Application in Tomcat. Using ant with Tomcat Applications. Using Auto Deploy with Tomcat. Summary.
Introduction. Tomcat 4.0 Architecture. Tomcat 4.0 Design Goals. Tomcat 4.0 Architectural Components. Tomcat 4.0 Components and Configurable Attributes. Tomcat 4.0 Configuring Components. Catalina Connectors.
Enterprise JavaBeans Defined. EJB Architecture. EJB Implementation. EJBs and Transactions. Developing EJBs. Client Access. EJB Code Sample. When to Use EJBs. Over-Engineering with EJBs.
JDBC Application Programmer Interface. PreparedStatement Class. Mapping SQL Data Types into Java. Transactions.
Cal.java. TagCal.java.
This book is intended to provide instruction on the various tools and servers required to develop a Web site using Java technologies. The infrastructure or technical architecture with which these tools will be demonstrated will be a Linux server, the Apache HTTP server, the Tomcat Java server for JSP and servlet processing, and the PostgreSQL relational database. All of these tools are freely available on the Web though there may be licensing requirements for sale and distribution of some of the tools.While Linux will be the development environment for the purposes of this book, the installation and deployment on the NT platform are not significantly different.
The first section of the book will detail the installation and configuration of these technologies; the process of creating the infrastructure for development. While installation is generally not that involved, configuration for something as complex and variable as a Web site can be complex and dependent on the application being developed. The process of configuration will be revisited in later sections of the book that detail the development and deployment process.
The second section of the book will present several JSP examples and then present the code involved in the creation of a sample discussion group application using static HTML, JSPs, JavaBeans and JSP custom tags. These chapters will also provide some discussion of various design strategies for Java web development and then detail the Java code necessary to develop these applications.
Design patterns are, in a nutshell, proven solutions to recurring problems. Several design patterns have been identified for development with Java Web sites. The use of these design patterns are presented, discussed and then demonstrated in this text.
After reading this book, the reader will understand the benefits of Web development using JSPs and will have the knowledge to begin building such a site. The book will demonstrate tips and techniques for Java development on the Web and in many cases, will drill down into several of the more interesting features of Java.
Intended AudienceThe intended audience for this book is the web site developer, technology architect or technical manager interested in Web site development and curious about the technical aspects of a Java web site. The reader should be familiar with the various Web technologies: the HTTP server, the database, the browser, HTML and the Java programming language. But familiarity does not imply expertise. The reader is not expected to be an expert in these technologies; the purpose of this book is to fill in the various holes in the readerUs knowledge and make them aware of what technologies are needed to create a Java web site.
After reading this book the reader will understand the requirements for building a Java web site and using the information provided in the book and using the examples as a guide, can begin building the site. This book includes directions on developing a sound architecture for a Java web site and provides examples for the design and development of the site. Several sample applications demonstrate best practices for Java web site development.
While this book strives to provide detailed information on the various technologies involved in Web site creation (Apache, JSP, servlets, the Java language) it does not purport to be a complete reference on all of these technologies. Many books could be written (and have been written) on the components of a web site and on Java development. These books provide excellent complements to this text and, if IUve done my job well, should rest comfortably on the shelf next to a well-worn copy of this text.