WebWork in Action In Action First Edition Patrick Lightbody
WebWork in Action In Action First Edition Patrick Lightbody
WebWork in Action In Action First Edition Patrick Lightbody
WebWork in Action In Action First Edition Patrick Lightbodygoddesabot79
WebWork in Action In Action First Edition Patrick Lightbody
WebWork in Action In Action First Edition Patrick Lightbody
WebWork in Action In Action First Edition Patrick Lightbody
Getting MEAN with Mongo Express Angular and Node 1st Edition Simon Holmessherajqublan
Getting MEAN with Mongo Express Angular and Node 1st Edition Simon Holmes
Getting MEAN with Mongo Express Angular and Node 1st Edition Simon Holmes
Getting MEAN with Mongo Express Angular and Node 1st Edition Simon Holmes
IntelliJ IDEA in Action In Action series 1st Edition Stephen Saundersrahmasdh
IntelliJ IDEA in Action In Action series 1st Edition Stephen Saunders
IntelliJ IDEA in Action In Action series 1st Edition Stephen Saunders
IntelliJ IDEA in Action In Action series 1st Edition Stephen Saunders
Download full ebook of Extending jQuery Keith Wood download pdf instant downl...busicluckesz
Extending jQuery Keith Wood ready for immediate download following payment at https://ebookfinal.com/download/extending-jquery-keith-wood. Discover additional textbooks and ebooks in https://ebookfinal.com Full chapter PDF.
iPhone in action introduction to Web and SDK development 1st Edition Christop...lipiriuezee
iPhone in action introduction to Web and SDK development 1st Edition Christopher Allen
iPhone in action introduction to Web and SDK development 1st Edition Christopher Allen
iPhone in action introduction to Web and SDK development 1st Edition Christopher Allen
PDF DevOps with OpenShift 1st Edition Mike Hepburn downloadxalanaunnuk
DevOps with OpenShift 1st Edition Mike Hepburn available for quick download following payment at https://textbookfull.com/product/devops-with-openshift-1st-edition-mike-hepburn. Discover more textbooks and ebooks in https://textbookfull.com Full PDF chapter.
This document provides a summary of useful .NET Core CLI (dotnet) commands for building and running ASP.NET Core applications. It lists common commands like dotnet restore, dotnet build, dotnet run, dotnet publish, dotnet test, dotnet add package, dotnet new, and dotnet ef commands for Entity Framework Core. It also explains what each command does and the folder from which it should be run, such as the solution folder for commands that affect the whole solution.
(Ebook) JavaScript Application Design: A Build First Approach by Nicolas Be...hakwonjoxido51
(Ebook) JavaScript Application Design: A Build First Approach by Nicolas Bevacqua
(Ebook) JavaScript Application Design: A Build First Approach by Nicolas Bevacqua
(Ebook) JavaScript Application Design: A Build First Approach by Nicolas Bevacqua
Exam Ref 70 486 Developing ASP NET MVC 4 Web Applications William Penberthyzeemetapa
Exam Ref 70 486 Developing ASP NET MVC 4 Web Applications William Penberthy
Exam Ref 70 486 Developing ASP NET MVC 4 Web Applications William Penberthy
Exam Ref 70 486 Developing ASP NET MVC 4 Web Applications William Penberthy
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET...barbuhalahdl
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET MVC 1st Edition Jess Chadwick
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET MVC 1st Edition Jess Chadwick
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET MVC 1st Edition Jess Chadwick
AOP in NET Practical Aspect Oriented Programming Matthew D. Grovesanusansuphi
AOP in NET Practical Aspect Oriented Programming Matthew D. Groves
AOP in NET Practical Aspect Oriented Programming Matthew D. Groves
AOP in NET Practical Aspect Oriented Programming Matthew D. Groves
[Ebooks PDF] download Ajax in Practice 1st Edition Dave Crane full chaptersjnasjsgaiel
Download Ajax in Practice 1st Edition Dave Crane right away upon payment at https://ebookfinal.com/download/ajax-in-practice-1st-edition-dave-crane. Find more textbooks and ebooks in https://ebookfinal.com Full chapter PDF.
Using Docker Developing and Deploying Software with Containers 1st Edition Ad...abucdaroga
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Download full ebook of Azure in Action 1st Edition Chris Hay instant download...adobaherrami8
Download full ebook of Azure in Action 1st Edition Chris Hay instant download pdf
Download full ebook of Azure in Action 1st Edition Chris Hay instant download pdf
Download full ebook of Azure in Action 1st Edition Chris Hay instant download pdf
Using Docker Developing and Deploying Software with Containers 1st Edition Ad...eljantnezar
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Open Source ESBs in Action 1st Edition Tijs Rademakerstaajderner
Open Source ESBs in Action 1st Edition Tijs Rademakers
Open Source ESBs in Action 1st Edition Tijs Rademakers
Open Source ESBs in Action 1st Edition Tijs Rademakers
Download full DevOps with OpenShift 1st Edition Mike Hepburn ebook all chaptersvrekenmarde
Obtain DevOps with OpenShift 1st Edition Mike Hepburn instantly after payment at https://textbookfull.com/product/devops-with-openshift-1st-edition-mike-hepburn. Check out additional textbooks and ebooks in https://textbookfull.com Full chapter PDF download.
Open Source ESBs in Action 1st Edition Tijs Rademakerskrulatasev
Open Source ESBs in Action 1st Edition Tijs Rademakers
Open Source ESBs in Action 1st Edition Tijs Rademakers
Open Source ESBs in Action 1st Edition Tijs Rademakers
Cocoa and Objective C Up and Running Foundations of Mac iPhone and iPod touch...quizaloan
Cocoa and Objective C Up and Running Foundations of Mac iPhone and iPod touch programming 1st Edition Scott Stevenson
Cocoa and Objective C Up and Running Foundations of Mac iPhone and iPod touch programming 1st Edition Scott Stevenson
Cocoa and Objective C Up and Running Foundations of Mac iPhone and iPod touch programming 1st Edition Scott Stevenson
Exploring Substances:
Acidic, Basic, and
Neutral
Welcome to the fascinating world of acids and bases! Join siblings Ashwin and
Keerthi as they explore the colorful world of substances at their school's
National Science Day fair. Their adventure begins with a mysterious white paper
that reveals hidden messages when sprayed with a special liquid.
In this presentation, we'll discover how different substances can be classified as
acidic, basic, or neutral. We'll explore natural indicators like litmus, red rose
extract, and turmeric that help us identify these substances through color
changes. We'll also learn about neutralization reactions and their applications in
our daily lives.
by sandeep swamy
Ad
More Related Content
Similar to WebWork in Action In Action First Edition Patrick Lightbody (20)
iPhone in action introduction to Web and SDK development 1st Edition Christop...lipiriuezee
iPhone in action introduction to Web and SDK development 1st Edition Christopher Allen
iPhone in action introduction to Web and SDK development 1st Edition Christopher Allen
iPhone in action introduction to Web and SDK development 1st Edition Christopher Allen
PDF DevOps with OpenShift 1st Edition Mike Hepburn downloadxalanaunnuk
DevOps with OpenShift 1st Edition Mike Hepburn available for quick download following payment at https://textbookfull.com/product/devops-with-openshift-1st-edition-mike-hepburn. Discover more textbooks and ebooks in https://textbookfull.com Full PDF chapter.
This document provides a summary of useful .NET Core CLI (dotnet) commands for building and running ASP.NET Core applications. It lists common commands like dotnet restore, dotnet build, dotnet run, dotnet publish, dotnet test, dotnet add package, dotnet new, and dotnet ef commands for Entity Framework Core. It also explains what each command does and the folder from which it should be run, such as the solution folder for commands that affect the whole solution.
(Ebook) JavaScript Application Design: A Build First Approach by Nicolas Be...hakwonjoxido51
(Ebook) JavaScript Application Design: A Build First Approach by Nicolas Bevacqua
(Ebook) JavaScript Application Design: A Build First Approach by Nicolas Bevacqua
(Ebook) JavaScript Application Design: A Build First Approach by Nicolas Bevacqua
Exam Ref 70 486 Developing ASP NET MVC 4 Web Applications William Penberthyzeemetapa
Exam Ref 70 486 Developing ASP NET MVC 4 Web Applications William Penberthy
Exam Ref 70 486 Developing ASP NET MVC 4 Web Applications William Penberthy
Exam Ref 70 486 Developing ASP NET MVC 4 Web Applications William Penberthy
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET...barbuhalahdl
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET MVC 1st Edition Jess Chadwick
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET MVC 1st Edition Jess Chadwick
Programming ASP NET MVC 4 Developing Real World Web Applications with ASP NET MVC 1st Edition Jess Chadwick
AOP in NET Practical Aspect Oriented Programming Matthew D. Grovesanusansuphi
AOP in NET Practical Aspect Oriented Programming Matthew D. Groves
AOP in NET Practical Aspect Oriented Programming Matthew D. Groves
AOP in NET Practical Aspect Oriented Programming Matthew D. Groves
[Ebooks PDF] download Ajax in Practice 1st Edition Dave Crane full chaptersjnasjsgaiel
Download Ajax in Practice 1st Edition Dave Crane right away upon payment at https://ebookfinal.com/download/ajax-in-practice-1st-edition-dave-crane. Find more textbooks and ebooks in https://ebookfinal.com Full chapter PDF.
Using Docker Developing and Deploying Software with Containers 1st Edition Ad...abucdaroga
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Download full ebook of Azure in Action 1st Edition Chris Hay instant download...adobaherrami8
Download full ebook of Azure in Action 1st Edition Chris Hay instant download pdf
Download full ebook of Azure in Action 1st Edition Chris Hay instant download pdf
Download full ebook of Azure in Action 1st Edition Chris Hay instant download pdf
Using Docker Developing and Deploying Software with Containers 1st Edition Ad...eljantnezar
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Using Docker Developing and Deploying Software with Containers 1st Edition Adrian Mouat
Open Source ESBs in Action 1st Edition Tijs Rademakerstaajderner
Open Source ESBs in Action 1st Edition Tijs Rademakers
Open Source ESBs in Action 1st Edition Tijs Rademakers
Open Source ESBs in Action 1st Edition Tijs Rademakers
Download full DevOps with OpenShift 1st Edition Mike Hepburn ebook all chaptersvrekenmarde
Obtain DevOps with OpenShift 1st Edition Mike Hepburn instantly after payment at https://textbookfull.com/product/devops-with-openshift-1st-edition-mike-hepburn. Check out additional textbooks and ebooks in https://textbookfull.com Full chapter PDF download.
Open Source ESBs in Action 1st Edition Tijs Rademakerskrulatasev
Open Source ESBs in Action 1st Edition Tijs Rademakers
Open Source ESBs in Action 1st Edition Tijs Rademakers
Open Source ESBs in Action 1st Edition Tijs Rademakers
Cocoa and Objective C Up and Running Foundations of Mac iPhone and iPod touch...quizaloan
Cocoa and Objective C Up and Running Foundations of Mac iPhone and iPod touch programming 1st Edition Scott Stevenson
Cocoa and Objective C Up and Running Foundations of Mac iPhone and iPod touch programming 1st Edition Scott Stevenson
Cocoa and Objective C Up and Running Foundations of Mac iPhone and iPod touch programming 1st Edition Scott Stevenson
Exploring Substances:
Acidic, Basic, and
Neutral
Welcome to the fascinating world of acids and bases! Join siblings Ashwin and
Keerthi as they explore the colorful world of substances at their school's
National Science Day fair. Their adventure begins with a mysterious white paper
that reveals hidden messages when sprayed with a special liquid.
In this presentation, we'll discover how different substances can be classified as
acidic, basic, or neutral. We'll explore natural indicators like litmus, red rose
extract, and turmeric that help us identify these substances through color
changes. We'll also learn about neutralization reactions and their applications in
our daily lives.
by sandeep swamy
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...Celine George
Analytic accounts are used to track and manage financial transactions related to specific projects, departments, or business units. They provide detailed insights into costs and revenues at a granular level, independent of the main accounting system. This helps to better understand profitability, performance, and resource allocation, making it easier to make informed financial decisions and strategic planning.
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schoolsdogden2
Algebra 1 is often described as a “gateway” class, a pivotal moment that can shape the rest of a student’s K–12 education. Early access is key: successfully completing Algebra 1 in middle school allows students to complete advanced math and science coursework in high school, which research shows lead to higher wages and lower rates of unemployment in adulthood.
Learn how The Atlanta Public Schools is using their data to create a more equitable enrollment in middle school Algebra classes.
Understanding P–N Junction Semiconductors: A Beginner’s GuideGS Virdi
Dive into the fundamentals of P–N junctions, the heart of every diode and semiconductor device. In this concise presentation, Dr. G.S. Virdi (Former Chief Scientist, CSIR-CEERI Pilani) covers:
What Is a P–N Junction? Learn how P-type and N-type materials join to create a diode.
Depletion Region & Biasing: See how forward and reverse bias shape the voltage–current behavior.
V–I Characteristics: Understand the curve that defines diode operation.
Real-World Uses: Discover common applications in rectifiers, signal clipping, and more.
Ideal for electronics students, hobbyists, and engineers seeking a clear, practical introduction to P–N junction semiconductors.
Geography Sem II Unit 1C Correlation of Geography with other school subjectsProfDrShaikhImran
The correlation of school subjects refers to the interconnectedness and mutual reinforcement between different academic disciplines. This concept highlights how knowledge and skills in one subject can support, enhance, or overlap with learning in another. Recognizing these correlations helps in creating a more holistic and meaningful educational experience.
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...larencebapu132
This is short and accurate description of World war-1 (1914-18)
It can give you the perfect factual conceptual clarity on the great war
Regards Simanchala Sarab
Student of BABed(ITEP, Secondary stage)in History at Guru Nanak Dev University Amritsar Punjab 🙏🙏
Odoo Inventory Rules and Routes v17 - Odoo SlidesCeline George
Odoo's inventory management system is highly flexible and powerful, allowing businesses to efficiently manage their stock operations through the use of Rules and Routes.
How to manage Multiple Warehouses for multiple floors in odoo point of saleCeline George
The need for multiple warehouses and effective inventory management is crucial for companies aiming to optimize their operations, enhance customer satisfaction, and maintain a competitive edge.
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetSritoma Majumder
Introduction
All the materials around us are made up of elements. These elements can be broadly divided into two major groups:
Metals
Non-Metals
Each group has its own unique physical and chemical properties. Let's understand them one by one.
Physical Properties
1. Appearance
Metals: Shiny (lustrous). Example: gold, silver, copper.
Non-metals: Dull appearance (except iodine, which is shiny).
2. Hardness
Metals: Generally hard. Example: iron.
Non-metals: Usually soft (except diamond, a form of carbon, which is very hard).
3. State
Metals: Mostly solids at room temperature (except mercury, which is a liquid).
Non-metals: Can be solids, liquids, or gases. Example: oxygen (gas), bromine (liquid), sulphur (solid).
4. Malleability
Metals: Can be hammered into thin sheets (malleable).
Non-metals: Not malleable. They break when hammered (brittle).
5. Ductility
Metals: Can be drawn into wires (ductile).
Non-metals: Not ductile.
6. Conductivity
Metals: Good conductors of heat and electricity.
Non-metals: Poor conductors (except graphite, which is a good conductor).
7. Sonorous Nature
Metals: Produce a ringing sound when struck.
Non-metals: Do not produce sound.
Chemical Properties
1. Reaction with Oxygen
Metals react with oxygen to form metal oxides.
These metal oxides are usually basic.
Non-metals react with oxygen to form non-metallic oxides.
These oxides are usually acidic.
2. Reaction with Water
Metals:
Some react vigorously (e.g., sodium).
Some react slowly (e.g., iron).
Some do not react at all (e.g., gold, silver).
Non-metals: Generally do not react with water.
3. Reaction with Acids
Metals react with acids to produce salt and hydrogen gas.
Non-metals: Do not react with acids.
4. Reaction with Bases
Some non-metals react with bases to form salts, but this is rare.
Metals generally do not react with bases directly (except amphoteric metals like aluminum and zinc).
Displacement Reaction
More reactive metals can displace less reactive metals from their salt solutions.
Uses of Metals
Iron: Making machines, tools, and buildings.
Aluminum: Used in aircraft, utensils.
Copper: Electrical wires.
Gold and Silver: Jewelry.
Zinc: Coating iron to prevent rusting (galvanization).
Uses of Non-Metals
Oxygen: Breathing.
Nitrogen: Fertilizers.
Chlorine: Water purification.
Carbon: Fuel (coal), steel-making (coke).
Iodine: Medicines.
Alloys
An alloy is a mixture of metals or a metal with a non-metal.
Alloys have improved properties like strength, resistance to rusting.
How to Subscribe Newsletter From Odoo 18 WebsiteCeline George
Newsletter is a powerful tool that effectively manage the email marketing . It allows us to send professional looking HTML formatted emails. Under the Mailing Lists in Email Marketing we can find all the Newsletter.
How to Subscribe Newsletter From Odoo 18 WebsiteCeline George
Ad
WebWork in Action In Action First Edition Patrick Lightbody
1. Visit ebookfinal.com to download the full version and
explore more ebooks or textbooks
WebWork in Action In Action First Edition Patrick
Lightbody
_____ Click the link below to download _____
https://ebookfinal.com/download/webwork-in-action-in-action-
first-edition-patrick-lightbody/
Explore and download more ebooks or textbook at ebookfinal.com
2. Here are some recommended products that we believe you will be
interested in. You can click the link to download.
IntelliJ IDEA in Action In Action series 1st Edition
Stephen Saunders
https://ebookfinal.com/download/intellij-idea-in-action-in-action-
series-1st-edition-stephen-saunders/
Scala in Action Nilanjan Raychaudhuri
https://ebookfinal.com/download/scala-in-action-nilanjan-raychaudhuri/
DSLs in Action Debasish Ghosh
https://ebookfinal.com/download/dsls-in-action-debasish-ghosh/
Camel in Action Claus Ibsen
https://ebookfinal.com/download/camel-in-action-claus-ibsen/
3. Earth First Direct Action Manual 3rd Edition Earth First!
https://ebookfinal.com/download/earth-first-direct-action-manual-3rd-
edition-earth-first/
Grails in Action 1st Edition Glen Smith
https://ebookfinal.com/download/grails-in-action-1st-edition-glen-
smith/
Lucene in Action 2nd Edition Michael Mccandless
https://ebookfinal.com/download/lucene-in-action-2nd-edition-michael-
mccandless/
Psychology in Action Ninth Edition Karen Huffman
https://ebookfinal.com/download/psychology-in-action-ninth-edition-
karen-huffman/
Kafka in Action 1st Edition Dylan Scott
https://ebookfinal.com/download/kafka-in-action-1st-edition-dylan-
scott/
5. WebWork in Action In Action First Edition Patrick
Lightbody Digital Instant Download
Author(s): Patrick Lightbody, Jason Carreira
ISBN(s): 9781932394641, 1932394648
Edition: First Edition
File Details: PDF, 5.39 MB
Year: 2005
Language: english
11. v
brief contents
PART 1 INTRODUCTION TO WEBWORK ................... 1
Chapter 1 ■ An overview of WebWork 3
Chapter 2 ■ HelloWorld, the WebWork way 19
Chapter 3 ■ Setting up WebWork 38
PART 2 CORE CONCEPTS....................................... 75
Chapter 4 ■ Implementing WebWork actions 77
Chapter 5 ■ Adding functionality with interceptors 112
Chapter 6 ■ Inversion of Control 137
PART 3 DISPLAYING CONTENT ............................ 175
Chapter 7 ■ Using results 177
Chapter 8 ■ Getting data with the expression language 209
Chapter 9 ■ Tag libraries 230
Chapter 10 ■ Velocity 254
Chapter 11 ■ UI components 271
Licensed to Shirong Chen <[email protected]>
12. vi BRIEF CONTENTS
PART 4 ADVANCED TOPICS.................................. 311
Chapter 12 ■ Type conversion 313
Chapter 13 ■ Validating form data 333
Chapter 14 ■ Internationalization 360
Chapter 15 ■ Best practices 384
Appendix ■ WebWork architecture 424
Licensed to Shirong Chen <[email protected]>
13. vii
contents
foreword xv
preface xvii
acknowledgments xix
about this book xxi
a look at the future xxvi
about the title xxvii
about the cover illustration xxviii
PART 1 INTRODUCTION TO WEBWORK .........................1
1 An overview of WebWork 3
1.1 Why MVC is important 5
Classic MVC becomes outdated 6 ■ Classic MVC gets an update:
the Front Controller 7 ■ MVC evolves: the Page Controller 7
1.2 Understanding frameworks and containers 9
What is a framework? 9 ■ What a container can do 11
1.3 WebWork: past, present, and future 13
The history of WebWork 13 ■ Understanding the XWork core 13
Future directions 15
Licensed to Shirong Chen <[email protected]>
14. viii CONTENTS
1.4 The CaveatEmptor application 15
How CaveatEmptor is organized 16
1.5 Summary 17
2 HelloWorld, the WebWork way 19
2.1 Downloading WebWork 20
2.2 Preparing the skeleton 20
Creating the web.xml deployment file 21 ■ Creating the xwork.xml
configuration file 23 ■ Creating the webwork.properties
configuration file 23 ■ Tips for developing WebWork apps 24
2.3 Your first action 24
Saying hello, the WebWork way 25 ■ Displaying output to
the web browser 26 ■ Configuring your new action 27
2.4 Dealing with inputs 28
2.5 Advanced control flow 31
2.6 Letting WebWork do the work 33
Taking advantage of ActionSupport 34 ■ Intermediate modifications
to the JSP 35 ■ Exploring the UI tag library 36
2.7 Summary 37
3 Setting up WebWork 38
3.1 Configuring actions, results, and interceptors 39
Overview of terminology 39 ■ Actions 40
Results 46 ■ Interceptors 48
3.2 Advanced configuration 52
The xwork.xml DTD 52 ■ Namespaces and packages 53
Componentization using the include tag 57
3.3 Other configuration files 66
Web-app configuration: web.xml 66
Feature configuration: webwork.properties 67
3.4 Setting up your web app 70
General layout 70 ■ Required libraries 71 ■ Optional libraries 72
3.5 Summary 72
Licensed to Shirong Chen <[email protected]>
15. CONTENTS ix
PART 2 CORE CONCEPTS ............................................ 75
4 Implementing WebWork actions 77
4.1 The Action interface 78
Result codes 78 ■ Handling exceptions 79
4.2 Using the ActionSupport base class 80
4.3 Understanding basic validation 80
Validating an action: Validateable 81
Displaying error messages: ValidationAware 82
4.4 Using localized message texts 86
Retrieving the user’s locale: LocaleProvider 86
Displaying the localized text: TextProvider 86
Providing messages for other languages 89
4.5 Advanced inputs 90
Intermediary objects 90 ■ Using domain objects directly 91
4.6 Working with ModelDriven actions 95
Implementing ModelDriven actions 96
Considerations when using ModelDriven 100
4.7 Accessing data through the ActionContext 102
CaveatEmptor: accessing the session 102
Example: accessing the request and response 105
4.8 Handling file uploads 107
Accessing uploaded files through the request wrapper 107
Automating file uploads 109 ■ Configuration settings 110
4.9 Summary 111
5 Adding functionality with interceptors 112
5.1 How interceptors are called 113
5.2 Using the prepackaged interceptors 114
Utility interceptors 117 ■ Setting parameters 119
Defining workflow 123
5.3 Using prepackaged interceptor stacks 126
Licensed to Shirong Chen <[email protected]>
16. x CONTENTS
5.4 Building your own interceptors 128
Using the AroundInterceptor as a base 129 ■ Looking at an example
custom interceptor 130 ■ Getting callbacks before the result is
executed with the PreResultListener 133 ■ Looking out for
interceptor interactions 134
5.5 Interceptors vs. servlet filters 135
5.6 Summary 136
6 Inversion of Control 137
6.1 Examining the pattern 138
Common patterns for active resource management 138 ■ Inverting
resource management 142 ■ How IoC helps with testing 145
6.2 IoC essentials 146
WebWork’s IoC history 146 ■ Dependencies 148
Scope and lifecycle 149
6.3 Using WebWork’s IoC framework 151
Configuration 151 ■ Creating a new component 154 ■ Using IoC
on any object 158 ■ Dealing with complex dependencies 159
6.4 An example from CaveatEmptor 162
The HibernateSessionFactory component 163 ■ The Persistence
Manager component 165 ■ Configuring the components 168
Using the new components 169
6.5 Alternatives 170
Alternative IoC containers 170 ■ Non-IoC alternatives 172
6.6 Summary 173
PART 3 DISPLAYING CONTENT ..................................175
7 Using results 177
7.1 Life after the action 178
A simple result 178 ■ Configuring a result 180
7.2 Common results 182
Dispatching to a page 182 ■ Redirecting to a page 188
Chaining to another action 192
Licensed to Shirong Chen <[email protected]>
17. CONTENTS xi
7.3 Other results 197
Streaming Velocity templates directly to the output 197
FreeMarker: an alternative to Velocity 202
Generating reports with JasperReports 203
7.4 Summary 207
8 Getting data with the expression language 209
8.1 What is an expression language? 210
Why an expression language? 210 ■ Why OGNL? 211
Other expression languages 212 ■ Key OGNL concepts 213
8.2 Basic expression language features 213
Accessing bean properties 214 ■ Literals and operators 215
Calling methods 217 ■ Setting values and expression lists 218
Accessing static methods and fields 218 ■ Accessing the OGNL
context and the ActionContext 218
8.3 Working with collections 220
Working with lists and arrays 220 ■ Working with maps 221
Filtering and projecting collections 222 ■ The multiple uses
of “#” 223
8.4 Advanced expression language features 224
Linking the value stack to the expression language 224
Data type conversion 226 ■ Handling null property access 227
Creating lambda expressions on the fly 228
8.5 Summary 228
9 Tag libraries 230
9.1 Getting started 231
9.2 An overview of WebWork tags 232
The WebWork tag syntax 233
9.3 Data tags 235
The property tag 235 ■ The set tag 236 ■ The push tag 237
The bean tag 238 ■ The action tag 240
9.4 Control tags 242
The iterator tag 242 ■ The if and else tags 245
Licensed to Shirong Chen <[email protected]>
18. xii CONTENTS
9.5 Miscellaneous tags 246
The include tag 246 ■ The URL tag 247 ■ The i18n
and text tags 250 ■ The param tag 252
9.6 Summary 253
10 Velocity 254
10.1 Introduction to Velocity 255
What is Velocity? 255 ■ Getting ready to use Velocity 257
10.2 Basic syntax and operations 259
Property access 259 ■ Method calls 261 ■ Control statements:
if/else and loops 261 ■ Assigning variables 265
10.3 Advanced techniques 265
The VelocityContext 265 ■ WebWork-supplied objects in
the context 266 ■ Customizing the Velocity context 267
10.4 Using JSP tags in Velocity 268
10.5 Loading Velocity templates 269
10.6 Summary 269
11 UI components 271
11.1 Why bother with UI tags? 272
Eliminating the pain 272 ■ More than just form elements 280
11.2 UI tag overview 283
Templates 283 ■ Themes 285 ■ Tag attributes 291
11.3 UI tag reference 291
Common attributes 291 ■ Simple tags 294
Collection-based tags 299 ■ Advanced tags 305
11.4 Summary 309
PART 4 ADVANCED TOPICS ........................................311
12 Type conversion 313
12.1 Why type conversion? 314
The Servlet specification 314 ■ An action without type
conversion 315 ■ A view without type conversion 317
What WebWork’s type conversion gives you 319
Licensed to Shirong Chen <[email protected]>
19. CONTENTS xiii
12.2 Configuration 320
Role of a type converter 321 ■ Global type converters 322
Class-level type converters 322
12.3 Simple type conversion 323
Basic type conversion 323 ■ Built-in type conversion 325
Handling null property access 326
12.4 Advanced topics 326
Handling null Collection access 326 ■ Handling conversion
errors 329 ■ An example that puts it all together 330
12.5 Summary 331
13 Validating form data 333
13.1 Manually validating data 336
Validating in the execute() method 336
Implementing the Validateable interface 337
13.2 Using the Validation Framework 340
Building your first *-validation.xml file 340 ■ Registering
validators 341 ■ Applying the validation interceptor 345 ■ Pulling
it all together 346 ■ Looking at some validation XML examples 348
13.3 Exploring the advanced features
of the Validation Framework 350
Implementing a custom validator 351 ■ Validating with
different contexts 353 ■ Short-circuiting validation 354
The ExpressionValidator 355 ■ Reusing validations with
the visitor field validator 356
13.4 Summary 359
14 Internationalization 360
14.1 Exploring a quick internationalization example 361
14.2 Sources for messages 362
Understanding the ResourceBundle search order 364 ■ Adding
default resource bundles 366 ■ The <ww:i18n> tag 366
14.3 Using internationalized messages 368
Parameterizing localized texts 368 ■ Using getText() in taglib
attributes 369 ■ Formatting dates and numbers 370 ■ Using
localized messages in validations 370 ■ Using internationalized
texts for type conversion messages 371
Licensed to Shirong Chen <[email protected]>
20. xiv CONTENTS
14.4 Tips and tricks 373
Programmatically setting the locale 373 ■ Implementing Resource-
Bundles as classes 375 ■ Using the <ww:param> tag to pass
dynamically generated text to message texts 378 ■ Setting the
encoding: here, there, and everywhere 381 ■ A note on Java
PropertyResourceBundles 382 ■ A final note 382
14.5 Summary 383
15 Best practices 384
15.1 Setting up your environment 385
Setting up your IDE 386 ■ Reloading resources 388
15.2 Unit-testing your actions 389
Using mock objects 389 ■ The advantage of IoC for testing 391
Handling statics and ThreadLocals 391
15.3 Putting the pieces together: integration testing 393
Testing your configuration 393
Seeing the configuration with the config browser 396
15.4 Testing validations 398
Testing programmatic validations 398
Testing validation.xml files 398
15.5 Advanced UI tag usage 402
Overriding existing templates 403 ■ Writing custom templates 406
Writing custom themes 407
15.6 Using form tokens to prevent
duplicate form submissions 409
Using the <ww:token> tag 410 ■ Applying the
TokenInterceptor 412 ■ Transparently re-rendering
pages with the TokenSessionStoreInterceptor 413
15.7 Displaying wait pages automatically 413
15.8 A Single action for CRUD operations 417
Creating new categories with newCategory 418 ■ Reading and
updating with viewCategory and editCategory 419 ■ Saving catego-
ries with saveCategory 420 ■ Setting the parentCategory 422
15.9 Summary 423
appendix WebWork architecture 424
index 439
Licensed to Shirong Chen <[email protected]>
21. xv
foreword
Building a framework is difficult. On the one hand, the framework needs to be
flexible enough to cater to a wide variety of needs; on the other hand, it needs to
be solid enough that it doesn’t fall prey to the beast of complexity—the urge to
make it the solution to conquer all other solutions. In today’s development envi-
ronment, a multitude of frameworks is available to help you deal with various
aspects of creating complex and useful enterprise software. Each framework pro-
vides something unique that makes it cover its particular field of application in a
(more or less) human-friendly manner; in addition, each framework must work
within its boundaries, relating to other frameworks in a software ecology that is
constantly changing as needs and requirements change.
In order to accomplish this seemingly impossible task, it is necessary to acknowl-
edge and study past efforts that a framework is supposed to replace and/or extend.
In the case of WebWork, there were, and still are, a number of different approaches
and frameworks that I looked at before I set to work. The idea was to create a new
framework that allowed developers to get their job done with as little work as pos-
sible and perform each task efficiently without needing an unnecessarily complex
framework to work against. Simple things should be simple to do while allowing
complex things to be possible.
Another important aspect of WebWork is that it should allow developers as
much freedom as possible to use other technologies—for example, to render out-
put. A number of rendering alternatives are available, and it’s impossible—and
Licensed to Shirong Chen <[email protected]>
22. xvi FOREWORD
futile—to determine which one is best in all situations; such an alternative simply
doesn’t, and can’t, exist. Being open minded in this regard is crucial, and it has
paid off: WebWork has now been successfully integrated with a wide variety of ren-
dering technologies, including some that don’t target HTML or the Web. It has
grown beyond its initial purpose, which is always gratifying for a parent.
WebWork started as an itch that I needed to personally scratch. However, with
its second generation it has expanded into a fully grown community project,
where developers add and improve WebWork by leveraging the structure pro-
vided by the framework. No framework of this kind, in today’s competitive envi-
ronment, can be successful without the input and ideas of a multitude of
developers, because it’s important that it be able to handle the real issues that
people face in their daily work. As a result, WebWork now has a life of its own and
is growing steadily as a community effort.
A book covering such a framework needs to be able to deal with all the intrica-
cies of framework construction and convey the reasoning behind why it works the
way it does; it must also demonstrate in action how all the theoretical stuff works in
practice. Theory has no point if it ain’t practically applicable. This book explains
in reasonable detail the rationale for how WebWork is constructed, but it’s mainly
focused on showing you in practical terms how to use WebWork, from the simple
to the complex. Time is always of the essence, and this book is a great investment
if you’re interested in learning about web framework construction, or if you want
to make a killer web app that blows everyone’s mind. Anything is possible!
RICKARD ÖBERG
Licensed to Shirong Chen <[email protected]>
23. xvii
preface
It’s been almost 10 years since I developed my first web-based application. The
program was a simple online shopping cart written in Perl. I still have the code
lying around, and I look at it occasionally—I do this to remind myself of where I
was and to keep myself focused on where I want to go. The application was horri-
ble. It consisted of one extremely large Perl file (over 10,000 lines!), and it
printed out HTML using lots of print statements. Looking at it today, it’s impossi-
ble for me to understand.
And yet, 10 years ago, I managed to put together something that not only was
functional but also made sense to me. This growth is typical of what most profes-
sional developers go through, Jason and me included. The “hacks” I wrote made
sense at the time, but as the months and years went on, the code became a rat’s
nest and maintenance was a nightmare. This problem is bad enough when you’re
developing non-GUI programs, but it’s worse when bad code that handles business
logic is mixed with bad code that handles the GUI. And it’s even worse when your
GUI is written in HTML, and you’re relying on linearly spitting out HTML tags
instead of using object orientation or componentization.
Why is this important? Because, like all other developers, Jason and I have
grown from novice programmers hacking in Perl and PHP (and not really know-
ing what we were doing) to experienced developers with a deep understanding of
what it takes to build a maintainable web-based application.
Licensed to Shirong Chen <[email protected]>
24. xviii PREFACE
Jason and I didn’t create WebWork. It was developed by Rickard Öberg, one of
the original authors of JBoss, after he decided there had to be a better way to
develop web applications. What came from Rickard was a framework built around
the philosophy that the correct way to do something should also be the easiest
option, that the path of least resistance is a good thing, and that there is a fine bal-
ance between too much flexibility and too little.
Jason and I found WebWork through different means, but the end result was
the same: We were captivated by its functionality and grace. Over time, we evolved
from users to contributors to developers, and now to published authors. In the
process, we’ve learned better ways to do things. And similarly, WebWork has also
evolved. Jason and I spent endless nights creating version 2.0, which has become a
major upgrade and has set the groundwork for doing much more with the Web-
Work platform.
Today, WebWork is much more than it was in the past. And tomorrow, it will be
even better. In this book, you’ll learn the techniques, best practices, and concepts
that go with the WebWork framework. You’ll see why we spent so much energy on
type conversion and how it relates to HTTP. You’ll learn about how common chal-
lenges in the world of HTML (such as the double-submit problem) were solved
using interceptors—a feature unique to WebWork. You’ll understand why build-
ing reusable templates that generate HTML is the best way to quickly create main-
tainable web applications.
Mostly, though, you’ll learn a better way to build web applications. Whether
you’re already a WebWork user, or you use an alternative Java framework, or you
don’t use Java at all, this book provides the concepts and techniques that are the
foundation of WebWork. We hope this book serves as a WebWork reference and
also as a great tool for sharpening your development skills.
PATRICK LIGHTBODY
Licensed to Shirong Chen <[email protected]>
25. xix
acknowledgments
This book wouldn’t have been possible if it weren’t for the tremendous community
at OpenSymphony and all the software developers who continue to push for inno-
vation in the Java web space. To everyone who uses WebWork or other OpenSym-
phony projects: Thank you for the appreciation and support through the years;
with this book we’ll continue to drive innovation even further.
Of course, this book also couldn’t have been possible without a publisher. To
everyone at Manning, thank you for believing in us and in WebWork. This experi-
ence has been the most fulfilling project we’ve ever completed. We’d like to rec-
ognize the tireless efforts of our editor, Jackie Carter. As we closed in on the final
weeks and months, we couldn’t have pulled it off without the amazing proofread-
ing, editing, marketing, and coordination provided by Liz Welch, Tiffany Taylor,
Karen Tegtmeyer, and Mary Piergies. And finally, thank you to Marjan Bace for
having the faith that, even through delays and setbacks, Manning could offer a
book that would benefit so many software developers.
We also want to make a special mention of Carlos Whitt, who, with little notice,
was kind enough to step in and take on the role of technical editor at the last
minute. Thanks to Carlos’s diving catch, we received valuable feedback and
insightful comments. Carlos, your input was more valuable than we can possibly
describe. Thank you. In addition to Carlos’s heroic effort, we want to thank each
and every reviewer who provided feedback during the entire process: Jack Her-
rington, Drew McAuliffe, Bill Lynch, Dick Zetterberg, Steve Poll, Ryan Daigle,
Licensed to Shirong Chen <[email protected]>
27. Žilin vastasi:
— No, jos käy sääliksi, niin tuohan sitten minulle pitkä seiväs.
Tyttö pudisti vain päätään: — En voi!
Žilin rukoili häntä kädet ristissä:
— Hyvä, kiltti Dina, tuo seiväs!
— En voi, vastasi tyttö. Näkevät, kaikki ovat kotona. — Samalla
hän juoksi pois.
Ilta tuli, ja Žilin istui miettien: — Mitenhän tässä käy? Yhtämittaa
hän katseli aukon suulle. Taivaalla tuikkivat tähdet, mutta kuu ei ollut
vielä noussut. Mulla huusi iltahuutonsa, sitten pii taas kaikki hiljaista.
Žilin oli vaipumaisillaan uneen ajatellen: tyttö pelkää.
Äkkiä rupesi hänen päälleen tipahtelemaan savikokkareita; hän
katsahti ylöspäin: pitkä seiväs töksähteli kuopan reunaan, töksähti,
alkoi laskeutua ja painui kuoppaan. Žilin ihastui kovasti, tempasi
seipään käteensä ja laski sen jälleen maahan. Kylläpä olikin aika
seiväs! Hän oli nähnyt sen ennen talonkatolla.
Hän katsoi jälleen ylöspäin, — tähdet tuikkivat korkealla taivaalla;
mutta Dinan silmät loistivat pimeässä kuopan reunalla kuin kissan
silmät. Hän kurotti päänsä yli kuopan reunan ja kuiskasi: — Ivan,
Ivan! Kädellään hän viittaili lakkaamatta suutaan kohti antaen siten
merkin olla hiljaa.
— Mitä? kysyi Žilin.
— Kaikki muut ovat menneet, kaksi on vain jäänyt kotiin.
28. Žilin virkkoi Kostylinille:
— No, lähdetäänpäs, yritetään viimeisen kerran; minä kyllä nostan
sinut.
Kostylin ei ottanut puhetta kuuleviin korviinsa.
— Ei, ei minusta ole lähtijäksi. Mihinkä minä tästä, kun en kykene
edes kääntymäänkään.
— No, hyvästi sitten, erotaan ikiystävinä! Hän suuteli Kostyliniä.
Žilin tarttui seipääseen, pyysi Dinaa pitämään sitä pystyssä ja alkoi
kiivetä ylös. Mutta jalkapuut tekivät haittaa, ja hän luiskahti pari
kertaa takaisin. Kostylinkin kohottautui auttamaan, ja kun Dinakin
nauraen kiskoi häntä kaikin voimin paidan pieluksesta, pääsi hän
viimein ylös.
Žilin ojensi seipään Dinalle sanoen:
— Vie paikoilleen, Dina; jos huomataan sen olevan poissa, saat
selkääsi.
Dina vei seipään pois, ja Žilin lähti kulkemaan vuoren juurelle päin.
Kompuroituaan jyrkänteen alle hän haki terävän kiven ja koetti
ruhjoa jalkapuiden lukkoa. Mutta se oli vahva, iskut eivät siihen
pystyneet, eikä siihen tahtonut oikein päästä käsiksikään. Äkkiä hän
kuuli jonkun juoksevan vuoren rinnettä alas kevyesti hyppelehtien. —
Kaiketi taas Dina! hän ajatteli. Tyttönen juoksikin hänen luokseen ja
otti häneltä kiven virkkaen:
— Annahan kun minä!
29. Dina laskeutui polvilleen ja alkoi kivellä nakutella lukkoa. Mutta
kädet olivat hennot kuin varvut, eikä niissä ollut voimaa ollenkaan.
Hän heitti kiven kädestään ja puhkesi itkuun. Žilin kävi taas
vuorostaan käsiksi lukkoon, ja Dina kyykistyi hänen viereensä pitäen
häntä kiinni hartioista. Žilin kohotti katseensa ja näki vasemmalta
vuoren takaa tulevan kirkkaan kajastuksen taivaanrannalla. Kuu oli
nousemaisillaan. — Rotkon poikki metsään on päästävä, ennenkuin
kuu ehtii kokonaan nousta, hän ajatteli ja nousi seisoalleen viskaten
kiven kädestään. — Täytyy lähteä vaikka kahleissa.
— Hyvästi, Dina kulta. En unohda sinua koskaan. — Dina
kavahtaa häneen kiinni ja kopeloi käsillään löytääkseen paikan,
mihin pistäisi hänelle piirakoita. Žilin otti ne tytöltä.
— Kiitos, kaikkea sinä keksitkin. Kuka sinulle tästälähtien
leikkikaluja tekee, puheli hän silittäen tytön hiuksia.
Dina purskahti itkuun ja kätki kasvot käsiinsä. Hän juoksi sitten
vuorelle ja hyppelehti kuin vuorikauris kiveltä kivelle. Pimeässä
kuului vain palmikon heiluvien helyjen ja rahojen helinä.
Žilin teki ristinmerkin, piti lukosta kiinni, jottei se kalisisi, ja läksi
kulkemaan tietä pitkin. Hän laahasi jalkojaan eteenpäin ja katseli
alinomaa nousevan kuun kajastusta taivaanrannalla. Tien hän tunsi
hyvästi. Vain noin kahdeksan virstaa oli matkaa suoraa tietä. Kunpa
joutuisi metsään, ennenkuin kuu nousta. Hän kahlasi erään puron
poikki, — kajastus taivaalla jo vaaleni vuoren takana. Kulkiessaan
notkon poikki Žilin yhä silmäili taivaanrantaa: kuuta ei vielä näkynyt.
Mutta kajastus kirkastui kirkastumistaan, ja rotkon toinen puoli kävi
yhä valoisammaksi. Metsän varjo siirtyi vuoren juurelle läheten häntä
koko ajan. Varjon turvissa Žilin samosi eteenpäin. Hän kiiruhti
kulkuaan, mutta kuu näytti vielä nopeammin kohoavan; oikeallakin
30. puolella se jo valaisi puiden latvoja. Žilin lähestyi metsää, ja kuukin jo
kohosi vuorten takaa. Oli kirkasta ja valoisaa kuin päivällä. Puitten
lehdetkin saattoi selvästi nähdä. Vuorilla oli äänetöntä ja valoisaa ja
kuolon hiljaisuus vallitsi kaikkialla. Kuului ainoastaan puron lirinää
alhaalta.
Žilin pääsi metsän suojaan kohtaamatta mitään tiellä. Hän valitsi
metsässä pimeimmän paikan ja istuutui lepäämään.
Syötyään kakkaran ja levähdettyään hän haki kiven ja rupesi
jälleen kalkuttelemaan jalkapuita rikki. Kädet ihan menivät verille,
mutta lukko ei särkynyt. Hän nousi taas ja lähti astumaan polkua
pitkin. Virstan verran kuljettuaan hän tunsi voimainsa olevan ihan
lopussa; jalkoja ihan särki. Kun kymmenenkin askelta sai astutuksi,
täytyi hänen aina taas pysähtyä. — Ei auta, ajatteli hän, — täytyy
kompuroida niin kauan kuin voimat riittävät. Jos käyn istumaan, en
kykene enää nousemaan. Linnoitukseen asti en jaksa kulkea. Mutta
kun päivä alkaa sarastaa, käyn metsään makaamaan ja yön tullen
jatkan taas matkaani.
Koko yön hän kulki. Vain kaksi ratsastavaa tataria sattui tulemaan
vastaan, mutta Žilin piilottautui puun taakse kuultuaan jo kaukaa
äänet.
Kuutamo alkoi jo vaaleta ja kaste nousta maahan; auringonnousu
oli lähellä. Žilin ei vielä ehtinyt metsän laitaan. — No, astunpahan
vielä kolmisenkymmentä askelta, sitten painaudun metsään
istumaan. — Kuljettuaan tämän verran hän huomasikin metsän
loppuvan. Hän tuli aukealle metsästä; oli ihan valoisaa. Aro ja
linnoitus olivat hänen edessään alhaalla aivan kuin kämmenellä.
Vasemmalla aivan lähellä vuorenjuurta näkyi tulia; ne olivat juuri
sammumaisillaan, niistä levisi savu ja niiden ääressä näkyi ihmisiä.
31. Žilin katseli tarkemmin, näki pyssyjen vilahtelevan, kasakoita,
sotamiehiä.
Hänen mielensä kävi iloiseksi, ja hän ponnisti viimeiset voimansa
lähtiessään kulkemaan vuorenkylkeä alas. — Herra varjelkoon,
tuolla aukealla joutumasta ratsastavan tatarin näkyviin; en pääsisi
pakoon, vaikka jo olenkin lähellä!
Tuskin hän ehti tätä ajatella, kun huomasi vasemmalla kummulla,
muutaman kivenheiton päässä kolmen tatarin seisovan. Nämä
huomasivat hänet ja lähtivät kiitämään häntä kohti. Häneltä oli sydän
ihan pakahtua. Hän viittoili käsillään ja huusi minkä suinkin ääntä sai
tovereilleen:
— Hyvät miehet! Pelastakaa! Toverit!
Ja kasakat kuulivat, he keikahtivat hevostensa selkään ja
ratsastivat häntä kohti ja tatareja vastaan.
Kasakat olivat etäällä, tatarit aivan lähellä. Žilin ponnisti viimeiset
voimansa, piteli jalkapuistaan kiinni ja juoksi kasakoita kohti.
Nääntyneenä hän teki ristinmerkin ja huusi:
— Hyvät miehet! Ystävät! Ystävät!
Kasakoita oli noin viisitoista.
Tatarit pelästyivät ja pysähtyivät, ennenkuin olivat hänet
tavoittaneet. Žilin riensi suinpäin kasakkain luo.
Kasakat ympäröivät hänet joka puolelta kysellen:— Kuka? Mitä
miehiä? Ja mistä? Mutta väsymyksestä ja mielenliikutuksesta
menehtyneenä Žilin vain itki ja toisti yhtenään:
32. — Ystävät! Ystävät!
Sotamiehetkin saapuivat paikalle ja ympäröivät hänet. Kuka antoi
leipää, kuka puuroa, kuka viinaa, joku peitteli päällysnutullaan, joku
alkoi särkeä jalkapuita.
Upseerit tunsivat hänet ja veivät linnoitukseen. Sotamiesten
kesken syntyi suuri riemu, toverit kokoontuivat kaikki Žilinin luo.
Žilin kertoi heille tarkoin, miten hänelle oli käynyt, ja virkkoi lopuksi:
— Semmoinen oli minun naimamatkani. Eipä näyttänyt olevan
Luojan tahto.
Ja hän jäi edelleen palvelemaan Kaukasiaan.
Kostylinista vaaditut viisituhatta saatiin suoritetuksi vasta
kuukauden kuluttua. Mies-parka oli silloin melkein kuoleman kielissä.
33. *** END OF THE PROJECT GUTENBERG EBOOK MISTÄ
IHMISET ELÄVÄT ***
Updated editions will replace the previous one—the old editions will
be renamed.
Creating the works from print editions not protected by U.S.
copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying copyright
royalties. Special rules, set forth in the General Terms of Use part of
this license, apply to copying and distributing Project Gutenberg™
electronic works to protect the PROJECT GUTENBERG™ concept
and trademark. Project Gutenberg is a registered trademark, and
may not be used if you charge for an eBook, except by following the
terms of the trademark license, including paying royalties for use of
the Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is very
easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.
START: FULL LICENSE
35. PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK
To protect the Project Gutenberg™ mission of promoting the free
distribution of electronic works, by using or distributing this work (or
any other work associated in any way with the phrase “Project
Gutenberg”), you agree to comply with all the terms of the Full
Project Gutenberg™ License available with this file or online at
www.gutenberg.org/license.
Section 1. General Terms of Use and
Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand, agree
to and accept all the terms of this license and intellectual property
(trademark/copyright) agreement. If you do not agree to abide by all
the terms of this agreement, you must cease using and return or
destroy all copies of Project Gutenberg™ electronic works in your
possession. If you paid a fee for obtaining a copy of or access to a
Project Gutenberg™ electronic work and you do not agree to be
bound by the terms of this agreement, you may obtain a refund from
the person or entity to whom you paid the fee as set forth in
paragraph 1.E.8.
1.B. “Project Gutenberg” is a registered trademark. It may only be
used on or associated in any way with an electronic work by people
who agree to be bound by the terms of this agreement. There are a
few things that you can do with most Project Gutenberg™ electronic
works even without complying with the full terms of this agreement.
See paragraph 1.C below. There are a lot of things you can do with
Project Gutenberg™ electronic works if you follow the terms of this
agreement and help preserve free future access to Project
Gutenberg™ electronic works. See paragraph 1.E below.
36. 1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright law in
the United States and you are located in the United States, we do
not claim a right to prevent you from copying, distributing,
performing, displaying or creating derivative works based on the
work as long as all references to Project Gutenberg are removed. Of
course, we hope that you will support the Project Gutenberg™
mission of promoting free access to electronic works by freely
sharing Project Gutenberg™ works in compliance with the terms of
this agreement for keeping the Project Gutenberg™ name
associated with the work. You can easily comply with the terms of
this agreement by keeping this work in the same format with its
attached full Project Gutenberg™ License when you share it without
charge with others.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
1.E. Unless you have removed all references to Project Gutenberg:
1.E.1. The following sentence, with active links to, or other
immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project Gutenberg™
work (any work on which the phrase “Project Gutenberg” appears, or
with which the phrase “Project Gutenberg” is associated) is
accessed, displayed, performed, viewed, copied or distributed:
37. This eBook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this eBook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.
1.E.2. If an individual Project Gutenberg™ electronic work is derived
from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.
1.E.3. If an individual Project Gutenberg™ electronic work is posted
with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning of
this work.
1.E.4. Do not unlink or detach or remove the full Project
Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.
1.E.5. Do not copy, display, perform, distribute or redistribute this
electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1 with
active links or immediate access to the full terms of the Project
Gutenberg™ License.
38. 1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or expense
to the user, provide a copy, a means of exporting a copy, or a means
of obtaining a copy upon request, of the work in its original “Plain
Vanilla ASCII” or other form. Any alternate format must include the
full Project Gutenberg™ License as specified in paragraph 1.E.1.
1.E.7. Do not charge a fee for access to, viewing, displaying,
performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.
1.E.8. You may charge a reasonable fee for copies of or providing
access to or distributing Project Gutenberg™ electronic works
provided that:
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You provide a full refund of any money paid by a user who
notifies you in writing (or by e-mail) within 30 days of receipt that
s/he does not agree to the terms of the full Project Gutenberg™
39. License. You must require such a user to return or destroy all
copies of the works possessed in a physical medium and
discontinue all use of and all access to other copies of Project
Gutenberg™ works.
• You provide, in accordance with paragraph 1.F.3, a full refund of
any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™
electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.
1.F.
1.F.1. Project Gutenberg volunteers and employees expend
considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.
1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except
for the “Right of Replacement or Refund” described in paragraph
1.F.3, the Project Gutenberg Literary Archive Foundation, the owner
of the Project Gutenberg™ trademark, and any other party
40. distributing a Project Gutenberg™ electronic work under this
agreement, disclaim all liability to you for damages, costs and
expenses, including legal fees. YOU AGREE THAT YOU HAVE NO
REMEDIES FOR NEGLIGENCE, STRICT LIABILITY, BREACH OF
WARRANTY OR BREACH OF CONTRACT EXCEPT THOSE
PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE THAT THE
FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.
1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you
discover a defect in this electronic work within 90 days of receiving it,
you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or entity
that provided you with the defective work may elect to provide a
replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.
1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
1.F.5. Some states do not allow disclaimers of certain implied
warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
41. by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.
1.F.6. INDEMNITY - You agree to indemnify and hold the
Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and distribution
of Project Gutenberg™ electronic works, harmless from all liability,
costs and expenses, including legal fees, that arise directly or
indirectly from any of the following which you do or cause to occur:
(a) distribution of this or any Project Gutenberg™ work, (b)
alteration, modification, or additions or deletions to any Project
Gutenberg™ work, and (c) any Defect you cause.
Section 2. Information about the Mission of
Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.
Volunteers and financial support to provide volunteers with the
assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.
42. Section 3. Information about the Project
Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.
The Foundation’s business office is located at 809 North 1500 West,
Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact
Section 4. Information about Donations to
the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many small
donations ($1 to $5,000) are particularly important to maintaining tax
exempt status with the IRS.
The Foundation is committed to complying with the laws regulating
charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
43. compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.
While we cannot and do not solicit contributions from states where
we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.
International donations are gratefully accepted, but we cannot make
any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Section 5. General Information About Project
Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.
Project Gutenberg™ eBooks are often created from several printed
editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
This website includes information about Project Gutenberg™,
including how to make donations to the Project Gutenberg Literary
44. Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.
45. Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
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.
Let us accompany you on the journey of exploring knowledge and
personal growth!
ebookfinal.com