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 moreJakarta 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 applicationLoaded 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
Introduction | p. 1 |
About This Book | p. 1 |
How to Use This Book | p. 2 |
Foolish Assumptions | p. 2 |
Conventions Used in This Book | p. 3 |
How This Book Is Organized | p. 3 |
Icons Used in This Book | p. 5 |
Where to Go from Here | p. 5 |
Part I Getting to Know Jakarta Struts | p. 7 |
Chapter 1 Starting with the Basics | p. 9 |
What Is Jakarta Struts? | p. 9 |
Structuring a Web Application | p. 11 |
Understanding the Model-View-Controller Design Pattern | p. 17 |
Chapter 2 Laying the Groundwork | p. 25 |
Getting Java | p. 26 |
Getting the Web Container | p. 29 |
Choosing Your Development Environment | p. 33 |
Downloading and Installing Eclipse | p. 34 |
Getting the Tomcat Launcher Plug-in for Eclipse | p. 35 |
Getting Struts | p. 39 |
Testing Your Web Application Development Environment | p. 43 |
Chapter 3 Creating a Simple Web Application with Struts | p. 47 |
Designing Your First Struts Application | p. 48 |
Putting Everything in Place | p. 49 |
Creating the JavaServer Pages | p. 59 |
Making the Formbean | p. 69 |
Adding a JavaBean | p. 74 |
Creating an Action | p. 75 |
Configuring Struts | p. 78 |
Strutting Your Stuff: Running the Application | p. 85 |
Part II Starting from the Core | p. 89 |
Chapter 4 Controlling with the Controller | p. 91 |
Understanding the Struts Controller Classes | p. 91 |
Working with the Master Controller--the ActionServlet | p. 93 |
Working with the Controller's Helper--RequestProcessor | p. 98 |
Getting Down to Work: Extending ActionClass | p. 100 |
Chapter 5 Creating the Model | p. 109 |
Understanding the Model | p. 109 |
Working with Business Objects | p. 110 |
Implementing the Model | p. 112 |
Getting MySQL | p. 113 |
Setting Up Your IDE and Web Container | p. 115 |
Working with MySQL | p. 117 |
Connecting the Model to the Database | p. 123 |
Pooling Connections | p. 130 |
Chapter 6 Designing the View | p. 137 |
Choosing JSP or an Alternative | p. 137 |
Internationalization | p. 139 |
Mediating between the View and the Controller | p. 149 |
Notifying Users of Problems | p. 154 |
Mediating Automatically | p. 155 |
Chapter 7 Setting the Configuration | p. 159 |
Stringing the Parts Together | p. 159 |
Editing the Web Container Configuration File | p. 160 |
Modifying the Struts Configuration File | p. 169 |
Part III Expanding Your Development Options | p. 189 |
Chapter 8 Exceptions to the Rule | p. 191 |
Java Errors and Exceptions | p. 192 |
Exception Strategies | p. 196 |
Writing Your Own Exception Classes | p. 197 |
Using Chained Exceptions | p. 198 |
Asserting Yourself | p. 199 |
Handling Exceptions Yourself | p. 201 |
Declarative Exception Handling | p. 203 |
Extending ExceptionHandler | p. 205 |
Handling RuntimeExceptions in Struts | p. 207 |
Chapter 9 Getting Friendly with Plug-ins | p. 209 |
Using the PlugIn Interface | p. 209 |
Implementing and Configuring Your Own Plug-in | p. 210 |
Working with the Validator Plug-in | p. 212 |
Chapter 10 Getting a Helping Hand with Tag Libraries | p. 225 |
Using Tag Libraries | p. 226 |
Expressing with the Expression Language | p. 227 |
Using the Struts-EL Tag Library | p. 230 |
Working with the JSP Standard Tag Library | p. 234 |
Other Struts Tag Libraries | p. 245 |
Looking at Java Server Faces | p. 246 |
Chapter 11 Working with Page Composition Techniques | p. 249 |
Making Your Page Layout Life Easier | p. 249 |
Simplifying with Includes | p. 251 |
Using the Tiles Framework | p. 256 |
Chapter 12 Securing Your Application | p. 265 |
Making the Application Responsible | p. 265 |
Declaring Security in Your Web Container | p. 270 |
Part IV Putting It All Together | p. 279 |
Chapter 13 Logging Your Actions | p. 281 |
Logging for Everyone | p. 281 |
Using Commons Logging | p. 282 |
Using Java 1.4 Logging | p. 284 |
Working with the Log4J Package | p. 284 |
Chapter 14 Creating the MusicCollection.com Application | p. 287 |
Description of the Application | p. 287 |
Creating the Database Schema | p. 289 |
Configuring DataSource | p. 290 |
Creating the Pages and Associated Files | p. 290 |
Logging On from the Home Page | p. 292 |
Creating a User Account | p. 298 |
Displaying the User's Albums | p. 305 |
Creating, Editing, or Deleting an Album | p. 310 |
Logging Off | p. 322 |
Handling Exceptions | p. 323 |
Running the Application | p. 325 |
Part V The Part of Tens | p. 327 |
Chapter 15 Ten Helpful Extensions to Struts | p. 329 |
ImageButtonBeanManager | p. 329 |
Struts Spring Plug-in | p. 330 |
Hibernate | p. 330 |
Expresso | p. 331 |
SSLExt | p. 332 |
Struts Action Scripting | p. 332 |
StrutsDoc | p. 333 |
StrutsTestCase for JUnit | p. 334 |
Struts Workflow Extension | p. 334 |
Easy Struts Plug-in | p. 335 |
Chapter 16 Ten Ways to Find More Information | p. 337 |
Struts Web Site | p. 337 |
Struts Mailing Lists | p. 338 |
Articles | p. 339 |
Tutorials | p. 339 |
Consultants | p. 340 |
Classes | p. 341 |
Struts Resources Web Sites | p. 341 |
Sample Applications | p. 342 |
Struts Documentation | p. 343 |
Friends and Colleagues | p. 344 |
Part VI Appendixes | p. 345 |
Appendix A Struts-EL and JSTL Tag Library Syntax | p. 347 |
Beans-EL Library Syntax | p. 347 |
HTML-EL Library Syntax | p. 348 |
Logic-EL Library Syntax | p. 361 |
JSTL Core Library Syntax | p. 363 |
JSTL Formatting Library Syntax | p. 366 |
JSTL SQL Library Syntax | p. 370 |
JSTL XML Library Syntax | p. 372 |
Appendix B Glossary | p. 375 |
Index | p. 379 |