| FlazX | Browse Computer Book | Community Board | Links | Blog | Login |
|
Addison Wesley JavaServer Pages, Second Edition (JSP 2.0)
Google Search |
Early sections explain how JSPs and Java servlets work. (In short, JSPs provide an easy way to write servlets, a powerful alternative to CGI scripts or Microsoft Active Server Pages, ASPs). With JSPs, you write HTML with embedded tags, so you don't have to be a Java expert to use them. The strength of this text has to be the author's practically minded tutorial showing these pages in action. Dozens of short programming excerpts provide a solid tour of basic techniques, including retrieving form variables and generating dynamic content for a sample news Web site. Later, the author delves into the Java programming language itself, along with custom JavaBeans for use within JSPs. Closing chapters enhance the sample Web site with personalization and even basic e-commerce capabilities. Chances are this case study is all you need to start making use of JSPs and beans successfully on your own. By centering on JSPs first and then working inward to the details of Java, the text can benefit a wide range of readers. Content creators can learn JSPs and gain exposure to some real Java, while serious Java programmers can learn a much simpler approach to writing servlets. Provided you know HTML and the basics of Web development, this easy-to-digest and worthwhile book can let you build Web sites that take advantage of one of today's most powerful server-side technologies. --Richard Dragan Topics covered: History of dynamic content with HTML, CGI scripts, Active Server Pages (ASPs), introduction to Java Server Pages (JSPs) and servlets, JSP comments and basic statements, error handling, request time processing and expressions, implicit JSP objects, retrieving user form variables, properties and serialization, basic Java programming (variables, keywords, objects, and simple class design), JSP scriptlets, conditionals, scoping rules, local, page, request and session scope, managing session information, designing JavaBeans, database and SQL basics, personalization techniques, dynamics ads, adding simple e-commerce capabilities, servlet events and APIs, using servlets with JSPs, introduction to XML and multithreaded programming, sample JSP code, and a case study for a news Web site. The second half of the book introduces the Java code needed for the tags in the first half of the book. It starts with a short chapter on writing Java code, and then introduces Java Beans, Servlets, and JSPs. This section provides as basic introduction to JSP programming. Also, the section introduces the MVC design pattern. This is is more geared for web designers who want to learn JSP and not for a Java programmer who want to learn JSP. Advanced topics of JSP are not fully covered in this book, so this book is not a complete reference. I would recommend this book to someone just learning JSP. The book has some nice features such as the included CD that has an installation of Tomcat 5 that implements JSP 2.0. The installation includes the working examples and the database already configured for the examples. The examples are organized as a website by chapter which allows the reader to easily navigate to see the example work or to examine the code. This allows the author not to inundate the book with code examples, but rather to add the appropriate amount of code to illustrate a point. I have a few criticisms for the book. Exercises for the reader should be added to the book to reinforce the text explanations, improve the learning process, and aid the retention of the reader. Likewise more illustrations should be added to the text to break up the blocks of text and enhance the reader's understanding. Perhaps, the MVC pattern could have been introduced earlier in the book since it is generally considered part of good design. The book is a solid resource for developers moving to JSP. The reader should keep in mind that some of the topics would require more study to prepare for Production quality development. The first half of the book is a basic overview of JSP with a concentration on building dynamic pages by using JavaBeans, JSTL, and the expression language. Anyone who is familiar with ASP or ColdFusion will find this section very easy to follow. Each chapter has examples that help to make the information from the chapter easier to understand. All of the examples are on the included CD and ran without any problem in Tomcat. The second half of the book starts with a brief introduction to the Java programming language. The book then shows how to use Java to write your own JavaBeans. Servlets are discussed along with explaining what an MVC architecture is using Struts as an example. The second half ends by showing how to develop your own tag libraries. The author has done a good job of explaining the basics of using JSPs but then he tries to cast too wide a net in the second half of the book. Each of the topics is covered too lightly (each topic could have its own book) and will tend to leave the inexperienced reader a bit lost. If you are a web designer and need to understand how to incorporate Java into your site then this book will be very helpful. Read the first part of the book in detail and just catch the major themes of the second half and you will be in good shape. It is especially pleasing that the relationships of XML, JSP and HTML and Databases are described. It gives the reader a good idea of how they relate and how they can complement each other. The included CD with the Tomcat engine was easy to install and the presentation of the examples makes the task of learning much easier. It operated correctly right away and this is something that often is not true with included examples. It is not an easy task to create a book that works for an introduction yet also has good coverage for the advanced user. I think that Mr. Pekowsky has done that here. Other books on JSP & Servlets | |||||||||||||
Google Talk : admin-at-flazx-dot-us