Stripes -- and Java web development is fun again

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

As a Java developer, you want to leverage your knowledge and the wealth of Java libraries and tools. But when it comes to web development, many frameworks seem over-engineered and too complex. They have a steep learning curve, and it's just too difficult to get them to do exactly what you need because of their "closed-box" design. Stripes brings simplicity back to Java web development. You'll be up and running in minutes, and can go a long way with just a few simple concepts. You'll spend your time developing your application, not maintaining gobs of configuration. Because Stripes is very transparent, you will understand exactly what is going on from request to response. The popularity of Stripes keeps increasing because of its clean design and extensibility. With this complete tutorial and reference, you can master Stripes and take advantage of its productivity in web application development. You'll tailor the framework to your requirements, not the other way around! This book is packed with explanations and examples so that you learn practical problem-solving techniques. You'll be able to "wrap your head around the framework" and fully understand how Stripes works. When a client requests a feature, you'll answer "yes" with confidence because you're using a framework that lets you get the results that you need without getting in your way. Because of its open design, Stripes lets you easily integrate your favorite tools: tag libraries, AJAX frameworks, ORM solutions, dependency injectors, and more.

Author(s): Frederic Daoud
Series: Pragmatic programmers
Edition: 1
Publisher: Pragmatic Bookshelf
Year: 2008

Language: English
Pages: 391
City: Raleigh, N.C

Contents......Page 9
Introduction......Page 13
What Can Stripes Do for You?......Page 15
Getting the Most Out of This Book......Page 16
Acknowledgments......Page 19
Learning the Controls......Page 21
Setting Up a Stripes Application......Page 22
Hello, Stripes!......Page 27
Binding to Action Beans......Page 36
Wrapping Up......Page 39
The Core: Action Beans and JSPs......Page 40
Let's CRUD......Page 41
Writing a Base for a Stripes Application......Page 43
Displaying Data with Action Beans and JSPs......Page 46
Parameterized Links......Page 52
Displaying Messages to the User......Page 57
Creating Forms......Page 60
Use a Forward or a Redirect?......Page 67
Stripes Validation Concepts......Page 70
Using Built-in Validations......Page 76
When You Need More: Custom Validation Methods......Page 88
Type Conversion Concepts......Page 98
Built-in Type Converters......Page 100
Formatting......Page 107
Working with Custom Data Types......Page 110
Customizing Information Messages......Page 121
Customizing Error Messages......Page 124
Changing the Text of Error Messages......Page 131
Creating Messages for Custom Errors......Page 138
Reusable Layouts......Page 141
Basic Stripes Layout Concepts......Page 142
Putting Layouts to Work: Decorators......Page 146
Using View Helpers......Page 156
If You're Used to Tiles or SiteMesh......Page 161
Revving Up......Page 165
Adding Form Input Controls......Page 166
Checkboxes......Page 167
Select Boxes......Page 170
Image Buttons and Text Areas......Page 174
Using Cross-page Controls......Page 178
Radio Buttons......Page 180
Managing Session Data......Page 183
Altering Form Values in the Action Bean......Page 188
Using Indexed Properties......Page 191
Working with Files......Page 195
The Registration Page......Page 203
Adding Password and Confirm Password Boxes......Page 205
Dealing with a Bunch of Required Fields......Page 207
Using Validation Metadata......Page 208
Creating a Wizard......Page 210
The Login Page......Page 216
Offering an Application in Multiple Languages......Page 218
Translating the Text of an Application......Page 221
Switching Between Languages......Page 233
Using Different Resource Bundles......Page 236
In High Gear......Page 244
Persistence with Stripersist, JPA, and Hibernate......Page 245
Dependency Injection with Spring......Page 261
Automated Testing with Mock Objects......Page 267
Houston: Exception Handling......Page 277
Customizing URL Bindings......Page 283
Everything Is Possible: Interceptors......Page 294
Interceptor Example: Adding Support for Guice......Page 299
Another Interceptor Example: Ensuring Login......Page 302
The Stripes Life Cycle in More Detail......Page 304
Controlling Parameter Binding......Page 307
Preventing Cross-site Scripting Attacks......Page 311
Using Encryption......Page 313
Ensuring the User Is Logged In......Page 315
Showing Users Their Data, Not Other People's......Page 319
Using Roles......Page 321
Using JavaScript and Ajax......Page 336
Using JavaScriptResolution......Page 337
Working with Ajax Requests and Responses......Page 341
Ajaxifying the Webmail Application......Page 351
Adding Client-Side Validation......Page 360
Required Configuration......Page 369
Extensions......Page 370
Settings......Page 376
Interceptors......Page 378
Stripes Dependencies......Page 379
Third-Party Frameworks, Libraries, and Tools......Page 380
Bibliography......Page 381
B......Page 382
E......Page 383
I......Page 384
M......Page 385
S......Page 386
T......Page 387
W......Page 388
X......Page 389