Skip to:Content
|
Bottom
Cover image for Jakarta struts for dummies
Title:
Jakarta struts for dummies
Publication Information:
Indianapolis, Ind. : Wiley Publishing, 2004
ISBN:
9780764559570
Added Author:

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010068088 QA76.76.A65 R62 2004 Open Access Book Book
Searching...

On Order

Summary

Summary

As a Web developer, you've probably heard a lot about Jakarta Struts, the popular open source framework for creating Web applications in Java. Struts is the de facto standard for Java-based Web applications; in fact, some people consider it the yardstick by which all other Web application frameworks are measured.

The Struts framework is based on a classic Model-View-Controller (MVC) design paradigm that combines Java servlets, Java Server Pages (JSP), custom tags, and message resources into a unified framework. Jakarta Struts For Dummies will get you up and running with Struts in a hurry, so you can

Control the business logic of your applications Design the view for JavaServer Pages Validate data Use tiles to dynamically create pages Secure and troubleshoot your applications, and more

Jakarta Struts saves you coding time and helps you create an extensible development environment. Jakarta Struts For Dummies provides the information you need when you need it, and even lets you get your feet wet right away by creating a special "jump start" application in Part I. Jakarta Struts For Dummies helps you

Understand and apply the Model-View-Controller (MVC) design pattern Integrate Struts into a Web application environment Use tag libraries to simplify your JSP pages Maintain control with effective security features Internationalize Web applications with a feature that creates easy-to-update text content, so international viewers can see pages in their own languages Represent all types of data, from one or two items to a huge and complex database Extend Jakarta's functionality with plug-ins Use logging to help you troubleshoot an application

Loaded with tips, examples, and explanatory sidebars, this plain-English guide to Jakarta Struts will have you creating Web applications with Struts before you can say "Java".


Author Notes

Mike Robinson is an independent Java developer specializing in interactive Web applications
Ellen Finkelstein is a top-selling computer book author and trainer


Table of Contents

Introductionp. 1
About This Bookp. 1
How to Use This Bookp. 2
Foolish Assumptionsp. 2
Conventions Used in This Bookp. 3
How This Book Is Organizedp. 3
Icons Used in This Bookp. 5
Where to Go from Herep. 5
Part I Getting to Know Jakarta Strutsp. 7
Chapter 1 Starting with the Basicsp. 9
What Is Jakarta Struts?p. 9
Structuring a Web Applicationp. 11
Understanding the Model-View-Controller Design Patternp. 17
Chapter 2 Laying the Groundworkp. 25
Getting Javap. 26
Getting the Web Containerp. 29
Choosing Your Development Environmentp. 33
Downloading and Installing Eclipsep. 34
Getting the Tomcat Launcher Plug-in for Eclipsep. 35
Getting Strutsp. 39
Testing Your Web Application Development Environmentp. 43
Chapter 3 Creating a Simple Web Application with Strutsp. 47
Designing Your First Struts Applicationp. 48
Putting Everything in Placep. 49
Creating the JavaServer Pagesp. 59
Making the Formbeanp. 69
Adding a JavaBeanp. 74
Creating an Actionp. 75
Configuring Strutsp. 78
Strutting Your Stuff: Running the Applicationp. 85
Part II Starting from the Corep. 89
Chapter 4 Controlling with the Controllerp. 91
Understanding the Struts Controller Classesp. 91
Working with the Master Controller--the ActionServletp. 93
Working with the Controller's Helper--RequestProcessorp. 98
Getting Down to Work: Extending ActionClassp. 100
Chapter 5 Creating the Modelp. 109
Understanding the Modelp. 109
Working with Business Objectsp. 110
Implementing the Modelp. 112
Getting MySQLp. 113
Setting Up Your IDE and Web Containerp. 115
Working with MySQLp. 117
Connecting the Model to the Databasep. 123
Pooling Connectionsp. 130
Chapter 6 Designing the Viewp. 137
Choosing JSP or an Alternativep. 137
Internationalizationp. 139
Mediating between the View and the Controllerp. 149
Notifying Users of Problemsp. 154
Mediating Automaticallyp. 155
Chapter 7 Setting the Configurationp. 159
Stringing the Parts Togetherp. 159
Editing the Web Container Configuration Filep. 160
Modifying the Struts Configuration Filep. 169
Part III Expanding Your Development Optionsp. 189
Chapter 8 Exceptions to the Rulep. 191
Java Errors and Exceptionsp. 192
Exception Strategiesp. 196
Writing Your Own Exception Classesp. 197
Using Chained Exceptionsp. 198
Asserting Yourselfp. 199
Handling Exceptions Yourselfp. 201
Declarative Exception Handlingp. 203
Extending ExceptionHandlerp. 205
Handling RuntimeExceptions in Strutsp. 207
Chapter 9 Getting Friendly with Plug-insp. 209
Using the PlugIn Interfacep. 209
Implementing and Configuring Your Own Plug-inp. 210
Working with the Validator Plug-inp. 212
Chapter 10 Getting a Helping Hand with Tag Librariesp. 225
Using Tag Librariesp. 226
Expressing with the Expression Languagep. 227
Using the Struts-EL Tag Libraryp. 230
Working with the JSP Standard Tag Libraryp. 234
Other Struts Tag Librariesp. 245
Looking at Java Server Facesp. 246
Chapter 11 Working with Page Composition Techniquesp. 249
Making Your Page Layout Life Easierp. 249
Simplifying with Includesp. 251
Using the Tiles Frameworkp. 256
Chapter 12 Securing Your Applicationp. 265
Making the Application Responsiblep. 265
Declaring Security in Your Web Containerp. 270
Part IV Putting It All Togetherp. 279
Chapter 13 Logging Your Actionsp. 281
Logging for Everyonep. 281
Using Commons Loggingp. 282
Using Java 1.4 Loggingp. 284
Working with the Log4J Packagep. 284
Chapter 14 Creating the MusicCollection.com Applicationp. 287
Description of the Applicationp. 287
Creating the Database Schemap. 289
Configuring DataSourcep. 290
Creating the Pages and Associated Filesp. 290
Logging On from the Home Pagep. 292
Creating a User Accountp. 298
Displaying the User's Albumsp. 305
Creating, Editing, or Deleting an Albump. 310
Logging Offp. 322
Handling Exceptionsp. 323
Running the Applicationp. 325
Part V The Part of Tensp. 327
Chapter 15 Ten Helpful Extensions to Strutsp. 329
ImageButtonBeanManagerp. 329
Struts Spring Plug-inp. 330
Hibernatep. 330
Expressop. 331
SSLExtp. 332
Struts Action Scriptingp. 332
StrutsDocp. 333
StrutsTestCase for JUnitp. 334
Struts Workflow Extensionp. 334
Easy Struts Plug-inp. 335
Chapter 16 Ten Ways to Find More Informationp. 337
Struts Web Sitep. 337
Struts Mailing Listsp. 338
Articlesp. 339
Tutorialsp. 339
Consultantsp. 340
Classesp. 341
Struts Resources Web Sitesp. 341
Sample Applicationsp. 342
Struts Documentationp. 343
Friends and Colleaguesp. 344
Part VI Appendixesp. 345
Appendix A Struts-EL and JSTL Tag Library Syntaxp. 347
Beans-EL Library Syntaxp. 347
HTML-EL Library Syntaxp. 348
Logic-EL Library Syntaxp. 361
JSTL Core Library Syntaxp. 363
JSTL Formatting Library Syntaxp. 366
JSTL SQL Library Syntaxp. 370
JSTL XML Library Syntaxp. 372
Appendix B Glossaryp. 375
Indexp. 379
Go to:Top of Page