JavaServer Pages
Conditions
Formats
Conditions
Conditions
Formats
Conditions
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. This description may be from another edition of this product.
I agree with some of the reviews presented here that the book is lacking in susbstance in many areas especially in intricate programming examples. However, the author never intended this book to discuss advanced topics. If it were, the book would be titled "Advanced JSPs" or "Enterprise JSPs". But it's not. So take it for what's worth and if you're new to JSPs and server development, you'll like this book. And if you find an advanced book for JSP programming, please let me know.
With some experience creating dynamic pages (CF, PHP, ASP) this text can get you familiar with JSP quickly. It is written very clearly and at least touches on the main issues you face. I needed to get a quick understanding of how JSP worked and how it varied from other systems I've used and this text was great for that.
I've created PHP and ASP websites in the last three years, so I do have some programming experience, but I haven't done anything with Java! After I started reading this book, I couldn't put it down. The information is presented so that you always know enough to understand what's going on in the code being developed for the main theme of the book, developing a dynamic news site. It also has short examples of code sprinkled throughout the book, that don't require you to follow the theme in order to see what's going on in a particular chapter. Author often presents a simple solution, then gives advice on what needs to be done to make the solution more robust. I love this book. It explains the technology as well as teaches the techique to to use it. I was able to create a dynamic JSP page that queries a MySQL database and neatly displays results within four hours of putting the book down (OK, I admit it, I had to take a few peeks). I'm impressed. If you are new to JSP, buy this book. Not new to JSP? Buy it anyway - it's great (and it talks about Beans and Servlets).
The coverage of JSP and how it relates to Java Beans and Servlets is excellent. The examples are reasonably in depth. I would recommend this book for experienced Java developers who want to get a good grounding of JSP.
I was fortunate in being able to look at this book while in manuscript, having been one of its tech reviewers. Mr. Pekowsky is a very gifted author and in addition, he really knows his stuff. He has a wonderful way of presenting technical matters in a crystalline-clear fashion. The JSP material in the book covers the complete gamut from elementary (e.g., jsp at an html-ish level) through advanced (e.g., jsp accessing java beans). Throughout the book the discussion is motivated in the context of putting together a fictional, Slashdot-like "Java News Today" (JNT) Web site. Besides being a good teaching tool, the JNT examples should be useful for cut-and-paste use by readers. I think good JSP's are pretty tough to write, and especially to debug. If you're interested in JSP programming, you'll need all the help you can get. This book will assist mightily.