JSP Practical Guide for Programmers 1st Edition Robert Brunner 2024 scribd download
JSP Practical Guide for Programmers 1st Edition Robert Brunner 2024 scribd download
com
https://ebookname.com/product/jsp-practical-guide-for-
programmers-1st-edition-robert-brunner/
OR CLICK HERE
DOWLOAD NOW
https://ebookname.com/product/jstl-practical-guide-for-jsp-
programmers-1st-edition-sue-spielman/
ebookname.com
https://ebookname.com/product/c-2-0-practical-guide-for-programmers-
michel-de-champlain/
ebookname.com
https://ebookname.com/product/the-struts-framework-practical-guide-
for-java-programmers-1st-edition-sue-spielman/
ebookname.com
https://ebookname.com/product/perspectives-in-theoretical-physics-1st-
edition-thomas-f-george/
ebookname.com
What s in a Divine Name Religious Systems and Human Agency
in the Ancient Mediterranean 1st Edition Alaya Palamidis
(Eds.)
https://ebookname.com/product/what-s-in-a-divine-name-religious-
systems-and-human-agency-in-the-ancient-mediterranean-1st-edition-
alaya-palamidis-eds/
ebookname.com
https://ebookname.com/product/the-promise-and-performance-of-american-
democracy-tenth-edition-jon-r-bond/
ebookname.com
https://ebookname.com/product/expressive-therapies-continuum-a-
framework-for-using-art-in-therapy-2nd-edition-lisa-d-hinz/
ebookname.com
https://ebookname.com/product/the-naqab-bedouins-a-century-of-
politics-and-resistance-mansour-nasasra/
ebookname.com
100 Desserts to Die for Quick Easy Delicious Recipes for
the Ultimate Classics 2nd Edition Trish Deseine
https://ebookname.com/product/100-desserts-to-die-for-quick-easy-
delicious-recipes-for-the-ultimate-classics-2nd-edition-trish-deseine/
ebookname.com
Practical Guide to JavaServer Pages
ThisPageIntentionallyLeftBlank
Practical Guide to
JavaServer Pages
Robert J. Brunner
Designations used by companies to distinguish their products are often claimed as trademarks or
registered trademarks. In all instances in which Morgan Kaufmann Publishers is aware of a claim,
the product names appear in initial capital or all capital letters. Readers, however, should contact
the appropriate companies for more complete information regarding trademarks and registration.
07 06 05 04 03 5 4 3 2 1
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any
form or by any means—electronic, mechanical, photocopying, or otherwise—without the prior
written permission of the publisher.
ISBN: 1-55860-836-2
Preface xi
vii
viii Contents ■
4 Expression Language 71
4.1 EL Overview 72
4.1.1 Accessing Data 73
4.1.2 Implicit Objects 74
4.1.3 Literal Values 74
4.1.4 Operators 75
4.2 EL and JavaBeans 78
4.3 EL and Collections 81
4.4 Functions 87
Exercises 91
Index 175
Preface
It has been more than 10 years since the introduction of the Mosaic Web browser from NCSA
when the Web first achieved widespread notice. Early Web pages were generally simple,
as people slowly learned the new Hypertext Markup Language (HTML) concepts. As the
Internet-browser wars heated up, more people entered the fray, and different technologies,
including Java, appeared to assist in the creation of dynamic Web sites. These dynamic
sites are what we are accustomed to visiting on the current Web. Of these new technologies,
several dominant candidates emerged, including ASP, CGI, and later PHP.
With all these existing technologies, one might wonder why even bother with
JavaServer Pages (JSPs)? Although there are many reasons, the answer can be summarized
by noting that no other competing technology offers a simple and intuitive interface that
supports the full power and portability of the Java programming language.
With the introduction of the JSP 2.0 specification, which is covered in this book,
writing JSP pages has become considerably easier, which will soon be reflected in the
variety of development tools available. As a result, the number of potential JSP developers
will soon increase, as will the corresponding number of JSP Web applications. In summary,
now is a great time to learn JavaServer Pages.
Intended Audience
This book has two primary audiences. The first group is professional Web developers who
wish to learn how to use JSP technology to build more powerful Web applications. Although
little or no knowledge of Java is required to start developing with JSP, such knowledge does
not hurt. However, this book does not provide any background on Java. Those who wish
xi
xii Preface ■
to learn more about Java, or any of the other technologies discussed in this book, should
look to the resources presented in Appendix B.
The second intended audience group is students in upper-level undergraduate or
continuing-education courses in Web application development with Java. This text can be
used alone or as a supplement to another text that might provide more details or addi-
tional example material. The material in this book requires a Java Virtual Machine (JVM)
and a Web-application server, such as the Apache Tomcat server (available for free), that
supports the JSP 2.0 specification. The material and example code will work on hardware
and operating systems that have these two components.
Approach
Over the last few years, the JSP specification has been rapidly evolving to meet the needs
of the Java developer community. As a result, many new features have recently become
available, such as an Expression Language (EL), the Java Standard Tag Library (JSTL), and
Tag Files. These new concepts can both work with and replace existing techniques. As
a future JSP developer, you should be exposed to both the old and new approaches so
you can create new applications as well as maintain existing ones. Thus, this text first
introduces the original model of using Java code directly within a JSP page. Then, later
chapters slowly introduce the newer technologies that allow you to create Java-free JSP
pages, which are easier to write and maintain.
The first chapter lays the foundation for the rest of the book. Primarily, this founda-
tion involves Web applications and the related concepts of Hypertext Transport Protocol
(HTTP) and Java Servlets. Chapter 1 ends with a brief discussion of the Web application
used to demonstrate JSP development throughout this book. As a result, the first chapter
can be quickly skimmed by anyone who already has a solid grasp of the basics.
Acknowledgements
The compact nature of this book belies the amount of work required to put it into your
hands. Numerous people helped with the entire process, from the original proposal to the
completed manuscript.
First, a great deal of thanks goes to the many reviewers, some of whom remained
anonymous, whose comments greatly improved the quality of the material presented in
this book. A special note of thanks goes to Paul Turcotte, Jon Brisbin, and Jeff Donahoo
for their helpful comments. Any errors that remain are entirely my responsibility. If
you find any, please let me know. I will maintain an errata page at the book’s Web site:
http://www.mkp.com/practical/jsp.
The people at Morgan Kaufmann, now part of Elsevier, have been enormously helpful.
Karyn Johnson, my editor, has been very understanding and supportive, and she is
■ Preface xiii
probably even happier than I am to see this book completed. In addition, I would like
to thank Rick Adams for his initial support of this project.
Finally, none of this would have been possible without support and love from my
family. Now I can finally go out and play.
Feedback
Writing a book is a long and difficult task, aided greatly by having hard deadlines.
Despite my best efforts, it is only natural that improvements can be made; other-
wise, the book would never get finished. Please feel free to comment on any aspect
of this book, via direct email to [email protected], or via the book’s Web page at
http://www.mkp.com/practical/jsp.
ThisPageIntentionallyLeftBlank
Discovering Diverse Content Through
Random Scribd Documents
A l’idée du bonheur qu’il préparait à Bernard et à la pupille de
Cabasse, malgré toutes les résistances du tuteur usurier, Gaspard
s’attendrissait.
Le bonheur d’amour, dans la paix, selon la loi et selon Dieu,
l’amour dans le devoir, une famille laborieuse et respectée, — c’est
ce que lui, Gaspard, n’aurait jamais ! — Donner ce bonheur à deux
jeunes êtres qui en étaient dignes, n’était-ce pas une bonne œuvre
qui lui serait comptée comme une touchante excuse aux exactions
qu’il était en train d’expier ? Il ne parvenait pas à en être sûr et à
s’absoudre pleinement… Ainsi la solitude de la prison lui montrait les
choses sous un jour nouveau, formait en lui comme une conscience
neuve.
Assis dans l’étroite cellule, les poignets pris dans des bracelets
de fer, attaché aux murs comme un chien à sa niche, Gaspard
rêvait. Le chien enchaîné, lui du moins, voit, du seuil de sa cabane,
la lumière du jour. Gaspard n’avait que la clarté de son calèn fumeux
et qui s’éteignait souvent faute d’huile ; il fallait alors attendre le bon
plaisir du geôlier Castagne. Un grillage épais, au-dessus de la porte,
barrait la mince ouverture rectangulaire par où lui arrivait un peu de
la lumière naturelle. Et cela s’appelait un jour de souffrance.
Dans cette ombre, Gaspard rêvait aussi d’amour ; et c’est là que,
pour la première fois, il se prit à reconnaître que l’image de Mme de
Lizerolles était en lui comme vivante et attirante.
Quoi ! osait-il espérer d’elle autre chose qu’une pitié hautaine ? Il
ne savait pas. Profiterait-il de l’ignorance où elle était de son nom ? Il
se refusait à cette pensée comme au plus criminel des abus de
confiance.
Or, Gaspard avait un secret d’amour, enfoui profondément dans
son cœur. A Aix, il avait trompé, séduit, sous un nom d’emprunt, une
douce et humble petite bourgeoise, misé Brun, la femme d’un
modeste horloger. Celle-là n’avait-elle pas pour lui oublié tous ses
devoirs ? Quelle honte, quelle douleur pour elle, le jour où elle
apprendrait que son amant n’était autre que Gaspard de Besse, un
chef de voleurs !
… Ainsi, il aimait assez Mme de Lizerolles pour vouloir lui
épargner une souffrance que, bien malgré lui, mais fatalement, il
infligerait tôt ou tard à misé Brun. Et la noblesse de son amour pour
la comtesse lui reprocha la bassesse de son acte vis-à-vis de la
plébéienne, en sorte qu’il prit, dans sa prison, la résolution de ne
plus revoir misé Brun. Elle pleurerait un infidèle, mais ignorerait à
jamais — il l’espérait du moins — la qualité de son déplorable
séducteur. Il éprouva un grand bien-être à s’affermir dans cette
résolution ; il se sentit un peu réconcilié avec lui-même, et, d’ailleurs,
libéré en même temps, d’une dangereuse intrigue.
Y avait-il d’autres figures de femmes dans ses souvenirs ? Sans
doute ; mais toutes comme voilées et lointaines. Il était si
« agradant », si plaisant, que, pour s’expliquer ses qualités de
séducteur, les paysans de Besse (et il ne l’ignorait pas) prétendaient
qu’il était un enfant de l’amour. Il était fils, disait-on, du marquis de
X… qui avait séduit sa mère misé Bouis. Facilement ému par la
grâce féminine, il se reconnut troublé par la fille de son geôlier,
Louisette, qui, parfois, remplaçant son père, lui apportait l’eau et le
pain. Quand c’était Louisette qui ouvrait la porte du cachot, un rayon
du joyeux soleil entrait avec elle ; et, elle aussi, était lumière et joie…
Essaierait-il de troubler le cœur de cette fillette pour obtenir d’elle la
liberté ? Il souriait malgré lui à cette idée. On racontait dans le
peuple que la fille d’un geôlier séduite par M. de Mirabeau, enfermé
au château d’If, avait favorisé l’évasion du gentilhomme. Donc, il
imiterait M. de Mirabeau…; mais, là encore, Mme de Lizerolles
intervenait, apparaissait à Gaspard avec un visage sévère : « Vous
laisserez en repos cette fille »…
Comment ! n’était-il donc plus libre de cœur et d’esprit ? Tout
caprice galant lui était-il interdit par une ombre ? Pauvre Louisette !
qu’arriverait-il de cette enfant ?… Mais, quoi ! ne pourrait-elle le
servir sans en être si mal récompensée ? Serait-elle la première qui
l’aurait ému de désir sans être mise à mal ?
Cette question réveilla en lui le souvenir d’une gentille aventure
qui lui était arrivée naguère. Il en revit les moindres détails. Elle
l’égaya tout un jour dans sa misérable geôle…
HISTOIRE D’UNE GORGERETTE.
Dom Pablo, avec des arguments frappants, démontre à Castagne que l’esprit
vient toujours à bout de la force.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com