Home > Store

Struts Kick Start

Register your product to gain access to bonus material or receive a coupon.

Struts Kick Start

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2003
  • Edition: 1st
  • Book
  • ISBN-10: 0-672-32472-5
  • ISBN-13: 978-0-672-32472-7

Learn to build applications with Jakarta Struts, the most popular JSP development framework. Struts Kick Start is a "hands-on" book filled with sample applications and code snippets you can reuse, and in-depth coverage of new features in Struts 1.1. If you are looking for a practical book that "shows you how to do it", then Struts Kick Start is for you. Plus, it's the first Struts book with detailed examples of the major Struts tags.

The book begins with a discussion of Struts and its Model-View-Controller (MVC) architecture. The authors' then demonstrate Struts' power through the development of a non-trivial sample application - covering all the Struts components in a "how to use them" approach. You'll also see the Struts Tag Library in action - use tags for HTML, javabeans, logical operations and more. You'll learn to use Struts with JBoss for EJB's, with Apache Axis to publish and use Web Services, and with JUnit for testing and debugging. The authors work with the latest Struts 1.1 features including DynaForms, Tiles and the Validator.

The book includes a CD-ROM containing the tools discussed in the book: Struts 1.1 beta 2, Java 2 Standard Edition, JBoss 3.0.3, MySQL 3.23, XDoclet, Torque, Tomcat, Ant, Axis, Cactus, and JUnit. Plus, it comes with an electronic, fully searchable version of the book.

From the Inside Cover: Thoroughly covers the essential features of Struts in a clear and readable style.

Struts Kick Start is a solid starting point for learning how to develop web applications using Struts. The authors start you off by reviewing the foundational technologies on which Struts is based, and immediately get into the sorts of practical "how to" information and examples that get you up to speed quickly.

Notable features that I really appreciated include the coverage on integration with other technologies (such as EJBs and web services), using Ant to set up your development environment, and the fact that the software goodies you need are available on the included CD. Struts does not live in a vacuum -- it is one of the tools in the developer's toolkit, so knowing how it works with other technologies is very useful.

Of particular importance is the coverage on testing your web application as you build and maintain it. Developing a solid testing methodology, and a substantial suite of tests (to protect yourself against regressions), is critically important to a rapid development cycle that still needs to produce high quality applications. Coverage of testing, though, tends to be minimal in many books about programming technologies. James and Kevin provide specific advice on how to use the JUnit and Cactus testing frameworks with your Struts based applications.

Struts Kick Start is a good resource for learning about Struts, and it will help you get up to speed quickly.

- Craig McClanahan, Creator of Struts

Sample Content

Online Sample Chapters

Hello World

Struts Kick Start: Building Applications

Table of Contents



Introduction.

Who Should Read This Book? What Do You Need to Bring to the Table? What Does This Book Cover? Tools Youll Need. How This Book Is Organized. The Companion Web Site. Conventions Used in This Book. Updates and Corrections.



1. Struts in Context.

The Parable of the Carpenter. What Is Struts? State of Struts: Where Things Are Right Now. Faces Behind the Code: Struts Development. Where Struts Is Going. Conclusions.



2. The Model-View-Controller Design Pattern: 'Model 2' JSP Development.

The Model-View-Controller Design Pattern. The Origins of Model 1 / Model 2. How Struts Implements the Model 2 Pattern. Conclusions.



3. Hello World!: A First Struts Application.

Hello World! Application Requirements. Applying the Model-View-Controller Pattern. The View Component: The HTML Form and the Form Bean. MessageResources and Application.properties Files. The Struts Form Bean: HelloForm.java. Data Validation and ActionErrors. The Controller Component: HelloAction.java. The Model Component (HelloModel.java). Passing Data to the View Using Attributes: Constants.java. Tying It All Together: The struts-config.xml File. Conclusions.



4. HTTP Protocol: Web Application Communications and Control.

HTTP Protocol and the Request/Response Cycle. Control Information: HTTP Headers and HTTP Response Codes. HTTP Cookies and Session/User Management. Conclusions.



5. JSP, Taglibs, and JSTL: Extending Java onto the Page.

Servlets and JSP. Object Scoping with JSP. Hiding Business Logic Using Beans. JSP Custom Tags. Web Application Deployment. JSTL: The Standard Tag Library. JSP and J2EE: The Big Picture. J2EE and Struts. Conclusions.



6. The Sample Application: A Financial Portfolio.

Requirements: Covering Your Rear End. Starting with the Wireframes. Developing Use Cases. Data Sources and Storage. Choosing Technologies. Conclusions.



7. View Components: What the End User Sees.

The ActionForm. JSP Files: The Alpha and the Omega. The Perils of Automatic Type Conversion. The html:errors Tag. Internationalization. Conclusions.



8. The Controller: Directing the Action.

The Action Class. Accessing the Session and Other Form Beans. User Validation and Struts. Transferring Control Inside and Outside the Application. Conclusions.



9. Model Components: Modeling the Business.

Well-Designed Models. Further Isolation Techniques. Conclusions.



10. The struts-config.xml File: Tying All the Pieces Together.

The struts-config DTD. The Configuration File in Context. Conclusions.



11. How the Struts Tag Libraries Work: The View from Inside.

Review of JSP Tag Libraries. Understanding How Struts Tags Work: The <bean:page> Tag. Comparison to the Java Standard Tag Library. Conclusions.



12. Struts HTML Tags: Page Construction and Form Processing.

Struts Tags, JSP Custom Tags, and Java Scriptlets: Whats the Right Balance? Using Struts HTML Tags to Render Basic HTML Elements. The Basics of Form Processing. Check Boxes and Radio Buttons. Drop Downs and Select/Option Lists. Input Validation and <html:errors>. Uploading a File Using <html:file>. Conclusions.



13. Struts Bean Tags: Storing and Passing Data.

Using Struts Bean Tags That Access Aspects of the Servlet Context. Using Struts Bean Tags That Access Java Resources. Using Struts Bean Tags That Access Bean Properties. Conclusions.



14. Struts Logic Tags: Conditional Presentation Logic.

Using Struts Logic Tags That Perform Conditional Display Based on a Value. Using Struts Logic Tags That Match Substrings. Using the Struts Logic Tags for Iteration. Using the Struts Logic Tags to Test for Absence or Presence of Values. Using the Struts Logic Tags to Transfer Control. Conclusions.



15. The Nested and Template Struts Tag Libraries: Handling Subproperties and Inserting Content.

Using the Struts Nested Tags. Using the Struts Template Tags. Conclusions.



16. The Struts Tiles Tag Library: Creation Master Document Templates.

A Tiles Overview. Enabling Tiles. The Definitions Configuration File. Writing JSP Files for Tiles. Modifying Your Actions. Putting It All Together. Other Aspects of Tiles. Conclusions.



17. DynaForms and the Validator.

DynaForms: Forms Without Java. The Validator: Automating Field Checking. Conclusions.



18. Using Struts with Enterprise JavaBeans.

EJBs Fit with Model Components. Quick Review of EJB Technologies. Using Different EJB Types with Struts. A Struts/EJB Sample Application. Conclusions.



19. Using Struts with Web Services.

Web Services Fit with Struts Model Components. A Quick Review of Web Service Technologies. How to Use Struts with a Web Service. A Struts/Web Service Sample Application. Conclusions.



20. Building, Deploying, and Testing Struts Applications.

An Integrated and Incremental Build/Test Cycle: Its Extreme! Building and Deploying Struts Applications Using Jakarta Ant. Developing a build.xml File for Building Struts Applications Using Ant. Extreme Struts Development with Integrated and Ongoing Testing. Mock Object Testing Using JUnit, StrutsTestCase, and Ant. In-Container Testing Using Cactus, JUnit, StrutsTestCase, and Ant. Conclusions.



Appendix A. Installing Struts and the Sample Applications from the CD.

Listing of Applications Included on the Companion CD-ROM. Step 1: Install the JDK and Tomcat. Step 2: Install MySQL. Copy the WAR Files to the Tomcat webapps Directory. Restart Tomcat.



Index.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020