JavaServer Pages

  • Authors:
  • Pekowsky

  • Affiliations:
  • -

  • Venue:
  • JavaServer Pages
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

From the Book:This is a book about how to create dynamic, interactive web sites using an exciting and powerful technology called JavaServerPages. As the name implies, this technology is based on the Java programming language and inherits many of the language's features and benefits. Most notably, Java makes JSPs available on almost every kind of computer and operating system, and certainly all those in common use.JavaServer Pages are now a mature and stable technology, already in use in thousands of companies. But maturity has certainly not lead to stagnation! Recently a new version of the JSP specification has been released, bringing new capabilities and possibilities. In addition, several companion technologies have been developed which augment the fundamental specification. The new specification, as well as the most important of these associated technologies, are all covered in this book. Throughout this book effort has been made not only to show the capabilities of all these tools, but also to discuss how they can best be used.One of the most important features of JavaServer Pages is how easy they are to use. Anyone who is reasonably comfortable with HTML can learn to write JavaServer Pages by using a few simple tags which may do very sophisticated things behind the scenes, along with small packages of code called JavaBeans. This allows for a very productive working relationship between HTML experts who build pages, and Java programmers who build beans and new tags.Both kinds of developer will find material of interest in this book. Chapter 1 gives a brief history of the web, in order to set JSPs in context and clarify what they are, how they work, and why they work that way. Chapter 2then introduces some of the simpler features of JSPs and shows just how easy the transition from HTML to JSP is.The next two chapters introduce the two vital technologies that give JSPs their enormous power and flexibility--JavaBeans in Chapter 3 and custom tags in Chapter 4. These are presented as page authors will use them, components that hide all the complexities of Java behind simple interfaces that can be combined and used in limitless ways. Chapter 5 then uses beans and tags to build a fully functional web site!One of the great benefits of JSPs is that they make it possible for pages to interact with complex systems. A very common such system is a database. Chapter 6 introduces database concepts, and discusses easy ways in which a page author can access data. Chapter 7 then uses this information to expand the utility of the site built in Chapter 5.XML is an increasingly important technology, and JSPs are already well-equipped to work with XML. This is covered in Chapter 8.The first 8 chapters comprise a logical first half of the book, dealing with the myriad things page authors can do with JSPs without knowing anything about Java. The remainder of the book delves under the hood to explain how all this is accomplished, and how Java programmers can extend the capabilities of JSPs. For readers who are not yet familiar with Java, Chapter 9 introduces the language.From there the book covers the process of creating new beans in Chapter 10. Chapter 11 covers a technology called servlets that underlies JSPs. This information is then used in Chapter 12 to talk about controllers, Java code that helps pieces of a web site work together simply and cleanly. Chapter 13 then discusses how to use Java to create new tags, and finally Chapter 14 covers a few remaining advanced topics.Readers who are not interested in programming will get the most out of this book by reading Chapters 1 through 9, which comprise a complete course on how to use JSPs, beans, tags, and related technologies to build just about any web site imaginable. At that point such readers may wish to learn a little Java from Chapter 9 and then proceed on through the rest of the book in order to better understand how everything works.On the other hand, readers who already know Java but who may not be familiar with either JSPs, the new features added as part of the latest specification, or related technologies will want to move quickly through Chapter 2 to get a feel for JSP syntax, and then go through Chapters 3 and 4 to see how JSPs interface with Java via tags and beans. Programmers may then wish to proceed to Chapter 10 to see how new beans are created, and from there through the second half of the book in order to understand servlets and tags.Finally, as amazing as it may seem, there is absolutely no cost to developing and deploying JSPs! There is no need to buy a special server or particular hardware or operating system. All the tools needed, and many others, have been released for free by the Apache group. The CD-ROM accompanying this book contains these tools, as well as all the examples from the book.It is my sincere hope that this book in conjunction with these tools will help you get the most out of this revolutionary new technology for building exciting, compelling web sites.