𝔖 Scriptorium
✦   LIBER   ✦

📁

Beginning JSP, Jsf and Tomcat Web Development

✍ Scribed by Giulio Zambon, Michael Sekler


Publisher
Apress
Year
2007
Tongue
English
Leaves
472
Edition
1
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Start building Java-based web applications now, even if you're a complete newcomer to Java. Comprehensive and example-driven, Beginning JSPT, JSFT, and Tomcat Web Development is all you need to develop dynamic web applications using JSP, connect to databases with JSF, and put them into action using the world's most popular open source Java web server, Apache Tomcat. * A comprehensive introduction to JavaServer Pages (JSP), JavaServer Faces (JSF), and the Apache Tomcat web application server * Key concepts made easy to grasp by numerous working examples and a walkthrough of the development of a complete e-commerce project * Written for professionals by a practicing Java web application professional and expert

✦ Table of Contents


Beginning JSP™, JSF™, and Tomcat Web Development:......Page 1
Contents at a Glance......Page 5
Contents......Page 7
About the Authors......Page 19
About the Technical Reviewer......Page 21
Introduction......Page 23
Introducing JavaServer Pages and Tomcat......Page 25
What Is JSP?......Page 26
Viewing a JSP Page......Page 27
Hello World!......Page 29
The Model 1 Architecture......Page 33
The Model 2 Architecture......Page 34
The Ebookshop Home Page......Page 36
The Ebookshop Servlet......Page 39
More on Ebookshop......Page 42
What Role Does Tomcat Play in All This?......Page 45
Summary......Page 48
Introduction......Page 49
Data Types and Variables......Page 50
Objects and Arrays......Page 52
Operators, Assignments, and Comparisons......Page 53
Selections......Page 54
Iterations......Page 55
Books......Page 56
The Customer Interface......Page 57
Servlet Initialization......Page 59
The View......Page 61
Implicit Variables......Page 62
Implicit Variable: out......Page 63
Implicit Variable: request......Page 64
Implicit Variable: session......Page 65
Directive: include......Page 66
Actions: forward, include, and param......Page 67
Actions: useBean and setProperty......Page 69
Comments and Escape Characters......Page 71
Step 1: Define the Tag Handler......Page 72
Step 2: Define the TLD......Page 74
Bodied Custom Actions......Page 76
Step 1: Define the Tag Handler......Page 77
Step 2: Define the TLD......Page 78
JSP Expression Language......Page 79
Using EL Expressions......Page 80
JSP Standard Tag Library......Page 83
The Core Library: Listing the Parameters......Page 84
Other Core Tags......Page 86
The i18n Library: Writing Multilingual Applications......Page 87
Introduction to XPath......Page 90
A Practical Example......Page 91
XML Syntax......Page 93
Summary......Page 96
The Protocols......Page 97
The Formatting......Page 99
More Bits and Pieces......Page 100
URLs......Page 101
Hosts and Paths......Page 102
GET and POST Requests......Page 103
Validation......Page 104
Document Structure and Basic Elements......Page 105
Content: Text, Objects, and Links......Page 106
Tables......Page 108
Forms......Page 111
Cascading Style Sheets......Page 117
Style Syntax......Page 118
Putting It All Together in an Example......Page 120
JavaScript......Page 124
Responding to Events......Page 125
Checking and Correcting Dates......Page 126
Animation: Bouncing Balls......Page 131
Animation: Ticker Tape......Page 138
What’s Ajax?......Page 140
Summary......Page 143
Database Basics......Page 145
SQL Scripts......Page 148
Java API......Page 150
Getting Started......Page 151
The executeQuery Method......Page 152
Transactions......Page 154
DB Access in Eshop......Page 155
What About the XML Syntax?......Page 159
Possible Alternatives to MySQL......Page 164
Summary......Page 167
At Face Value (JSF Primer)......Page 169
The JSF Life Cycle......Page 170
JSF Custom Tags......Page 172
Event Handling......Page 173
The JSF Application......Page 174
f:view, h:form, and h:outputText......Page 175
f:subview, h:panelGroup, h:graphicImage, and h:commandLink......Page 177
h:panelGrid, h:inputText, and h:commandButton......Page 178
The Shop Manager......Page 180
h:dataTable and h:column......Page 182
f:facet......Page 183
h:message and f:verbatim......Page 184
Using and Creating Converters......Page 185
Writing the Converter in Java......Page 186
Using and Creating Validators......Page 188
Built-In Validators......Page 189
Application-Level Validation......Page 190
Custom Validators......Page 191
Creating Custom Components......Page 193
Component......Page 194
Renderer......Page 196
Tag......Page 198
web.xml......Page 202
Summary......Page 204
Communicating with XML......Page 205
The XML Document......Page 206
XML DTDs......Page 207
XML Schemas......Page 208
Primitive and Derived Types......Page 210
Simple Types......Page 211
Complex Types......Page 214
Validation......Page 215
Validation Against a DTD......Page 217
Validation Against a Schema......Page 220
Example 1: Transformation from One XML Format to Another......Page 222
Example 2: Transformation from XML to HTML......Page 224
Browser Side vs. Server Side......Page 225
SOAP......Page 228
Summary......Page 234
Tomcat’s Architecture and server.xml......Page 235
Connector......Page 237
Host......Page 238
Listener......Page 239
Realm......Page 240
Valve......Page 241
conf......Page 242
webapps......Page 243
Example: Logging the Requests......Page 244
Example: Creating a Virtual Host......Page 247
Example: HTTPS......Page 248
Application Deployment......Page 250
Summary......Page 252
The Eshop Application......Page 253
What Happens When the Application Starts......Page 255
Displaying the Book Details......Page 258
Managing the Shopping Cart......Page 259
The Eshopx Application......Page 260
Style Sheet......Page 261
JSP Documents......Page 263
Custom Tags and TLD......Page 266
The Eshopf Application......Page 268
web.xml and context.xml......Page 270
JSP Documents......Page 271
Java Modules......Page 272
Summary......Page 274
Java......Page 275
Tomcat......Page 278
MySQL......Page 279
JDBC......Page 280
Tomcat and MySQL Checks......Page 281
JSTL......Page 284
XPath......Page 286
JavaServer Faces......Page 288
HTML Characters......Page 289
id......Page 297
accesskey......Page 298

to

......Page 299

and

......Page 300
Character Styling......Page 301
......Page 302

......Page 303
......Page 304
Creating a Clickable Map......Page 305
......Page 307
Frames......Page 308
frameborder......Page 309
cols......Page 310
......Page 311<br><iframe>......Page 313<br>accept......Page 315<br>Text Input......Page 316<br>Buttons and Images......Page 318<br>Choices......Page 319<br>Sets of Fields......Page 320<br>Lists......Page 321<br>The <img> element......Page 322<br>usemap......Page 323<br>More on Image Maps......Page 324<br>align, char, and charoff......Page 325<br><table> Attributes......Page 326<br>border, frame, and rules......Page 327<br>colspan and rowspan......Page 328<br>headers......Page 329<br>Columns......Page 330<br>Column Groups......Page 331<br>Table Header, Body, and Footer......Page 332<br><div> and <span>......Page 333<br><object> and <param>......Page 334<br><script> and <noscript>......Page 337<br>Implicit Objects......Page 339<br>Example: Using an Attribute to Enable and Disable Conditional Code......Page 340<br>Example: Using an Attribute to Control Logging......Page 341<br>Example: Using an init Parameter to Increase Application Portability......Page 343<br>The exception Object......Page 344<br>The out Object......Page 345<br>The pageContext Object......Page 346<br>Example: Listing the Headers......Page 347<br>Example: User Authentication......Page 349<br>Example: Reading the Request Body......Page 351<br>Example: Getting the Parameters......Page 353<br>The session Object......Page 355<br>The page Directive......Page 356<br>Standard Action Elements......Page 358<br>jsp:element, jsp:attribute, and jsp:body......Page 359<br>jsp:forward and jsp:param......Page 360<br>jsp:include......Page 361<br>jsp:plugin, jsp:params, and jsp:fallback......Page 362<br>jsp:useBean, jsp:getProperty, and jsp:setProperty......Page 364<br>Syntax......Page 367<br>Unknown......Page 0<br>Declarations......Page 369<br>SQL Terminology......Page 371<br>Transactions......Page 372<br>Statements......Page 374<br>The WHERE Condition......Page 375<br>Numbers......Page 377<br>Date and Time......Page 378<br>Large Objects......Page 379<br>SELECT......Page 380<br>SELECT to Obtain Data......Page 381<br>SELECT to Apply a Function......Page 382<br>JOINs......Page 383<br>CREATE DATABASE......Page 385<br>CREATE TABLE......Page 386<br>CREATE VIEW......Page 388<br>INSERT......Page 389<br>ALTER TABLE......Page 390<br>UPDATE......Page 391<br>Reserved SQL Keywords......Page 392<br>f:actionListener......Page 395<br>f:convertDateTime......Page 396<br>f:convertNumber......Page 397<br>f:loadBundle......Page 398<br>f:phaseListener......Page 399<br>f:selectItems......Page 400<br>f:validateDoubleRange......Page 401<br>f:validator......Page 402<br>f:view......Page 403<br>h:commandButton......Page 404<br>h:dataTable......Page 405<br>h:form......Page 406<br>h:inputSecret......Page 407<br>h:inputTextarea......Page 408<br>h:outputFormat......Page 409<br>h:outputText......Page 410<br>h:panelGroup......Page 411<br>h:select<em>......Page 412<br>h:selectBooleanCheckbox......Page 413<br>h:selectManyCheckbox......Page 414<br>h:selectManyListbox......Page 415<br>h:selectManyMenu......Page 416<br>h:selectOneMenu......Page 417<br>h:selectOneRadio......Page 418<br>Shared Attributes......Page 419<br>Eclipse......Page 425<br>How to Install Eclipse......Page 426<br>Importing the Eshop</em> Projects into Eclipse......Page 427<br>The Project Explorer Sidebar......Page 431<br>Eclipse Errors in Error Reporting......Page 432<br>Eclipse’s Main Window......Page 434<br>How to Make a WAR File......Page 436<br>Abbreviations and Acronyms......Page 439<br>Index......Page 443<br></p> </div> </section> </div> <div class="mt-10"> <div class="flex items-center gap-3 mb-6"> <hr class="divider flex-1"> <p class="cinzel text-xs tracking-[0.25em] shrink-0" style="color:var(--gold);">📜 SIMILAR VOLUMES</p> <hr class="divider flex-1"> </div> <div class="grid grid-cols-1 sm:grid-cols-2 gap-4"> <article class="parchment-card rounded-sm p-4 transition-all"> <div class="flex gap-4"> <div class="shrink-0"> <div class="w-[60px] h-[80px] flex items-end justify-center pb-1 overflow-hidden" style="background:linear-gradient(160deg,var(--parchment-d),var(--vellum)); border:2px solid var(--gold); box-shadow:2px 2px 0 var(--parchment-d);"> <span class="text-center leading-tight px-1" style="font-family:'Cinzel',serif; font-size:0.5rem; color:var(--ink-faint); word-break:break-word;"> Beginning JSP, JSF and Tomcat: Java Web </span> </div> </div> <div class="flex-1 min-w-0"> <div class="flex items-start gap-2 flex-wrap"> <a href="/beginning-jsp-jsf-and-tomcat-java-web-development-31625802" class="font-semibold text-base leading-snug line-clamp-2" style="color:var(--crimson); font-family:'Cinzel',serif;"> 📁 Beginning JSP, JSF and Tomcat: Java Web Development </a> </div> <div class="mt-1 flex flex-wrap gap-x-4 gap-y-0.5 text-xs italic" style="color:var(--ink-faint);"> <span>✍ Giulio Zambon (auth.)</span> <span>📂 Library</span> <span>📅 2012</span> <span>🏛 Apress</span> <span>🌐 English</span> </div> <p class="mt-2 text-sm line-clamp-2 italic" style="color:var(--ink-faint);"> &lt;p&gt;&lt;p&gt;Start building Java&amp;#150;based web applications now, even if you&amp;#146;re a complete newcomer to Java. Comprehensive and example&amp;#150;driven, &lt;em&gt;Beginning JSP, JSF, and Tomcat: Java Web Development, Second Edition&lt;/em&gt; is all you need to develop dynamic Java-based web applications using JSP, c </p> </div> </div> </article> <article class="parchment-card rounded-sm p-4 transition-all"> <div class="flex gap-4"> <div class="shrink-0"> <div class="w-[60px] h-[80px] flex items-end justify-center pb-1 overflow-hidden" style="background:linear-gradient(160deg,var(--parchment-d),var(--vellum)); border:2px solid var(--gold); box-shadow:2px 2px 0 var(--parchment-d);"> <span class="text-center leading-tight px-1" style="font-family:'Cinzel',serif; font-size:0.5rem; color:var(--ink-faint); word-break:break-word;"> Beginning JSP, JSF and Tomcat Java Web </span> </div> </div> <div class="flex-1 min-w-0"> <div class="flex items-start gap-2 flex-wrap"> <a href="/beginning-jsp-jsf-and-tomcat-java-web-development-27878379" class="font-semibold text-base leading-snug line-clamp-2" style="color:var(--crimson); font-family:'Cinzel',serif;"> 📁 Beginning JSP, JSF and Tomcat Java Web Development </a> </div> <div class="mt-1 flex flex-wrap gap-x-4 gap-y-0.5 text-xs italic" style="color:var(--ink-faint);"> <span>✍ Giulio Zambon</span> <span>📂 Library</span> <span>📅 2012</span> <span>🏛 Apress</span> <span>🌐 English</span> </div> <p class="mt-2 text-sm line-clamp-2 italic" style="color:var(--ink-faint);"> If you develop, test, or manage .NET software, you will find .NET Test Automation Recipes A Problem-Solution Approach very useful. The book presents practical techniques for writing lightweight software test automation in a .NET environment and covers API testing thoroughly. It also discusses lightw </p> </div> </div> </article> <article class="parchment-card rounded-sm p-4 transition-all"> <div class="flex gap-4"> <div class="shrink-0"> <div class="w-[60px] h-[80px] flex items-end justify-center pb-1 overflow-hidden" style="background:linear-gradient(160deg,var(--parchment-d),var(--vellum)); border:2px solid var(--gold); box-shadow:2px 2px 0 var(--parchment-d);"> <span class="text-center leading-tight px-1" style="font-family:'Cinzel',serif; font-size:0.5rem; color:var(--ink-faint); word-break:break-word;"> Beginning JSP™, JSF™ and Tomcat™ Web Dev </span> </div> </div> <div class="flex-1 min-w-0"> <div class="flex items-start gap-2 flex-wrap"> <a href="/beginning-jsp-jsf-and-tomcat-web-development-from-novice-to-professional-29678909" class="font-semibold text-base leading-snug line-clamp-2" style="color:var(--crimson); font-family:'Cinzel',serif;"> 📁 Beginning JSP™, JSF™ and Tomcat™ Web Development: From Novice to Professional </a> </div> <div class="mt-1 flex flex-wrap gap-x-4 gap-y-0.5 text-xs italic" style="color:var(--ink-faint);"> <span>✍ Giulio Zambon, Michael Sekler</span> <span>📂 Library</span> <span>📅 2007</span> <span>🏛 Apress</span> <span>🌐 English</span> </div> <p class="mt-2 text-sm line-clamp-2 italic" style="color:var(--ink-faint);"> Well after reviewing almost every book online and reading the reviews, I thought this Apress book and another on JPA would help me get over the issues I was having trying to incorporate a real world database driven JSP/JSF application. Unfortunately, the book&#39;s author simply does not present a start </p> </div> </div> </article> <article class="parchment-card rounded-sm p-4 transition-all"> <div class="flex gap-4"> <div class="shrink-0"> <div class="w-[60px] h-[80px] flex items-end justify-center pb-1 overflow-hidden" style="background:linear-gradient(160deg,var(--parchment-d),var(--vellum)); border:2px solid var(--gold); box-shadow:2px 2px 0 var(--parchment-d);"> <span class="text-center leading-tight px-1" style="font-family:'Cinzel',serif; font-size:0.5rem; color:var(--ink-faint); word-break:break-word;"> Beginning JSP™, JSF™ and Tomcat™ Web Dev </span> </div> </div> <div class="flex-1 min-w-0"> <div class="flex items-start gap-2 flex-wrap"> <a href="/beginning-jsp-jsf-and-tomcat-web-development-from-novice-to-professional-28527023" class="font-semibold text-base leading-snug line-clamp-2" style="color:var(--crimson); font-family:'Cinzel',serif;"> 📁 Beginning JSP™, JSF™ and Tomcat™ Web Development: From Novice to Professional </a> </div> <div class="mt-1 flex flex-wrap gap-x-4 gap-y-0.5 text-xs italic" style="color:var(--ink-faint);"> <span>✍ Giulio Zambon</span> <span>📂 Library</span> <span>📅 2007</span> <span>🏛 Apress</span> <span>🌐 English</span> </div> <p class="mt-2 text-sm line-clamp-2 italic" style="color:var(--ink-faint);"> &lt;p&gt;Start building Java–based web applications now, even if you’re a complete newcomer to Java. Comprehensive and example–driven, Beginning JSP™, JSF™, and Tomcat™ Web Development is all you need to develop dynamic web applications using JSP, connect to databases with JSF, and put them into action </p> </div> </div> </article> <article class="parchment-card rounded-sm p-4 transition-all"> <div class="flex gap-4"> <div class="shrink-0"> <div class="w-[60px] h-[80px] flex items-end justify-center pb-1 overflow-hidden" style="background:linear-gradient(160deg,var(--parchment-d),var(--vellum)); border:2px solid var(--gold); box-shadow:2px 2px 0 var(--parchment-d);"> <span class="text-center leading-tight px-1" style="font-family:'Cinzel',serif; font-size:0.5rem; color:var(--ink-faint); word-break:break-word;"> Beginning JSP, JSF and Tomcat, 2nd Editi </span> </div> </div> <div class="flex-1 min-w-0"> <div class="flex items-start gap-2 flex-wrap"> <a href="/beginning-jsp-jsf-and-tomcat-2nd-edition-java-web-development-27910884" class="font-semibold text-base leading-snug line-clamp-2" style="color:var(--crimson); font-family:'Cinzel',serif;"> 📁 Beginning JSP, JSF and Tomcat, 2nd Edition: Java Web Development </a> </div> <div class="mt-1 flex flex-wrap gap-x-4 gap-y-0.5 text-xs italic" style="color:var(--ink-faint);"> <span>✍ Giulio Zambon</span> <span>📂 Library</span> <span>📅 2</span> <span>🏛 Apress</span> <span>🌐 English</span> </div> <p class="mt-2 text-sm line-clamp-2 italic" style="color:var(--ink-faint);"> Start building Java - based web applications now, even if you&#39;re a complete newcomer to Java. Comprehensive and example - driven, Beginning JSP, JSF, and Tomcat: Java Web Development, Second Edition is all you need to develop dynamic Java-based web applications using JSP, connect to databases with J </p> </div> </div> </article> <article class="parchment-card rounded-sm p-4 transition-all"> <div class="flex gap-4"> <div class="shrink-0"> <div class="w-[60px] h-[80px] flex items-end justify-center pb-1 overflow-hidden" style="background:linear-gradient(160deg,var(--parchment-d),var(--vellum)); border:2px solid var(--gold); box-shadow:2px 2px 0 var(--parchment-d);"> <span class="text-center leading-tight px-1" style="font-family:'Cinzel',serif; font-size:0.5rem; color:var(--ink-faint); word-break:break-word;"> Beginning JSP™, JSF™ and Tomcat Web Deve </span> </div> </div> <div class="flex-1 min-w-0"> <div class="flex items-start gap-2 flex-wrap"> <a href="/beginning-jsp-jsf-and-tomcat-web-development-from-novice-to-professional-beginni-30853793" class="font-semibold text-base leading-snug line-clamp-2" style="color:var(--crimson); font-family:'Cinzel',serif;"> 📁 Beginning JSP™, JSF™ and Tomcat Web Development: From Novice to Professional (Beginning from Novice to Professional) </a> </div> <div class="mt-1 flex flex-wrap gap-x-4 gap-y-0.5 text-xs italic" style="color:var(--ink-faint);"> <span>✍ Giulio Zambon, Michael Sekler</span> <span>📂 Library</span> <span>📅 2007</span> <span>🌐 English</span> </div> <p class="mt-2 text-sm line-clamp-2 italic" style="color:var(--ink-faint);"> As the majority of Java developers are only Web-tier developers; Java technologies like JavaServer Pages (JSP), JavaServer Faces (JSF), and Apache Tomcat are mainly applicable and relevant to their needs. Beginning JSP, JSF and Tomcat: From Novice to Professional is the first and maybe even only be </p> </div> </div> </article> </div> </div> </div> </main> <footer style="border-top:2px solid var(--gold); background:var(--parchment-d);" class="mt-16 py-8 text-center text-sm"> <p class="fraktur text-2xl ornament mb-1">❧ Scriptorium Liberum ❧</p> <p style="color:var(--ink-faint);" class="cinzel text-xs tracking-wider"> 130M+ Volumes · Free Search &amp; Download · No Pledge of Fealty Required </p> <p class="mt-2 text-xs" style="color:var(--ink-faint);"> Tomes are for personal study only and may not be traded for coin or commerce. </p> </footer> </body> </html>