This source code bundle includes all of the book's examples.
If you have Ant 1.7.0 or
higher installed, you can go into the subdirectory of an example
and run ant
to build the WAR file for that example.
For examples email_23
to email_36
(except email_27
), first run
ant dbstart
from the top-level directory to start
the database engine.
Chapter | Example | Description |
---|---|---|
1. Introduction | n/a | n/a |
2. Stripes 101: Getting Started |
getting_started | getting started |
3. The Core: Action Beans and JSPs |
email_01 | simple table |
email_02 | Display Tag | |
email_03 | delete and view links | |
email_04 | confirm on delete information message |
|
email_05 | create/update form | |
4. Validating User Input | email_06 | validation |
5. There's more to life than Strings: Working with Data Types |
data_types | type converters formatters |
email_07 | custom type conversion custom formatting |
|
6. Customizing Message Display | email_08 | information messages errors in a group |
email_09 | errors next to fields | |
email_10 | highlighted errors | |
email_11 | custom tag error renderer | |
email_12 | changed field names with label | |
email_13 | changed field names in resource bundle | |
email_14 | different field names for different action beans |
|
email_15 | changed error message text | |
7. Reusable Layouts | email_16 | Stripes layout tags |
reusable_layouts | reusable layout examples | |
email_17 | Tiles | |
email_18 | SiteMesh | |
8. Adding Form Input Controls 9. Advanced Features Made Easy 10. Registering and Logging In |
email_19 | form input controls |
form_controls | more form control examples | |
11. Parlez-vous français? Making it Multilingual |
email_20 | localization, language switching |
email_21 | different resource bundles | |
email_22 | modular resource bundles | |
12. Completing the Stack | email_23 | Stripersist and JPA with Hibernate |
email_24 | Hibernate-specific code | |
email_25 | Dependency Injection with Spring | |
email_26 | Stripes mocks | |
email_27 | injected mocks and Mockito | |
13. Tapping into Stripes | email_28 | ExceptionHandler implementation |
email_29 | DefaultExceptionHandler extension ErrorResolution |
|
email_30 | different URL extension | |
email_31 | clean URLs with prefix | |
email_32 | clean URLs without prefix | |
email_33 | Dependency Injection with Guice | |
14. It's a dangerous world: Adding Security |
email_34 | common security issues |
email_35 | Stripes-Security plugin | |
security | @StrictBinding example | |
15. Using AJAX | ajax | AJAX examples |
email_36 | AJAX in the Contact List |