Muutke küpsiste eelistusi

E-raamat: Pro Apache Struts with Ajax

  • Formaat: PDF+DRM
  • Ilmumisaeg: 02-May-2007
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781430202523
Teised raamatud teemal:
  • Formaat - PDF+DRM
  • Hind: 43,21 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: PDF+DRM
  • Ilmumisaeg: 02-May-2007
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781430202523
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Pro Apache Struts with Ajax maps out how to use the Apache Struts MVC web framework, so you can solve everyday web application development challenges. This book takes an application-centric approach: the development of an application drives Struts along with Ajax coveragenot the other way around.



Improper design can lead to long-term dependencies on the Struts framework, which makes code reuse difficult to achieve. This is the only book of its kind, covering the Struts 1.2 framework. It also covers evolutions into Shale and lightweight WebWork/Struts Ti. Authors John Carnell and Rob Harrop discuss Struts from an antipattern perspective, and the end result is that you'll learn to use Struts very effectively!
About the Authors xv
About the Editor xvi
About the Technical Reviewers xvii
Acknowledgments xviii
Preface for This Edition xix
Preface from Previous Edition xx
What We Do Wrong: Web Antipatterns Explained
1(30)
What This Book Is About
3(1)
What This
Chapter Is About
4(1)
Challenges of Web Application Development
4(4)
Enterprise Services
6(1)
Application Services
7(1)
An Introduction to Patterns and Antipatterns
8(16)
Web Application Antipatterns
9(1)
Concern Slush
10(3)
Tier Leakage
13(3)
Hardwired
16(2)
Validation Confusion
18(2)
Tight-Skins
20(2)
Data Madness
22(2)
Antipatterns, JOS Frameworks, and Economics
24(7)
The JavaEdge Application
27(1)
Summary
28(3)
Struts Fundamentals
31(44)
The JavaEdge Application Architecture
32(20)
The Design
33(1)
Using Struts to Implement the MVC Pattern
34(3)
Getting Started: The JavaEdge Source Tree
37(11)
The Power of the Command Pattern
48(4)
Constructing the Presentation Tier
52(21)
The Java Edge Home Page
53(4)
Bean Tags
57(10)
Logic Tags
67(1)
Iteration Tags
68(1)
Conditional Tags
69(2)
Movement Tags
71(2)
Summary
73(2)
Form Presentation and Validation with Struts
75(48)
Problems with Form Validation
75(2)
Using Struts for Form Validation
77(2)
Implementing Form Validation with Struts
79(24)
The struts-config.xml File
80(1)
Struts ActionForm Class
81(6)
Prepopulating an ActionForm with Data
87(4)
Another Technique for Prepopulation
91(1)
Prepopulating a Form the Correct Way
92(1)
Validating the Form Data
93(10)
The Struts HTML Tag Library
103(19)
Setting Up a Struts HTML Form
104(3)
Using Text and TextArea Input Fields
107(1)
Drop-Down Lists, Checkboxes, and Radio Buttons
108(3)
Building More Dynamic ActionForms
111(7)
ActionForms and Business Logic
118(4)
Summary
122(1)
Managing Business Logic with Struts
123(50)
Business Logic Antipatterns and Struts
124(10)
Concern Slush and Struts
125(5)
Tier Leakage and Struts
130(2)
Separating Business Logic from Struts
132(2)
Implementing the Design Patterns
134(26)
Implementing the Business Delegate Pattern
135(6)
Implementing the Service Locator Pattern
141(8)
The Service Locator Revisited
149(5)
EJBs and Struts
154(6)
Handling Exceptions in the Action Class
160(11)
Exception Handling in Struts 1.0x
161(2)
Exception Handling in Struts 1.1 and Later
163(1)
Rewriting the ApplicationException Class
164(1)
Setting Up the struts-config.xml File
164(3)
Writing a Custom ExceptionHandler
167(4)
Summary
171(2)
Architecting the Data Access Tier with ObjectRelationalBridge
173(52)
Developing a Data Access Strategy
174(34)
The JavaEdge Data Access Model
176(6)
Value Objects
182(2)
The JavaEdge Value Objects
184(3)
Using an O/R Mapping Tool
187(3)
Setting Up the Object/Relational Mappings
190(11)
Which Sequence Manager to Use?
201(7)
OJB in Action
208(11)
Retrieving Data: A Simple Example
212(3)
Retrieving Data: A More Complicated Example
215(2)
Storing Data Using OJB
217(2)
Deleting Data with OJB
219(1)
Bringing It All Together
219(4)
Summary
223(2)
Building Flexible Front-Ends with the Tiles Framework
225(30)
What Is the Tiles Framework?
227(1)
Enabling Struts Version 1.1 to Use Tiles
228(7)
Configuring the Tiles Plug-In
229(2)
The tiles-defs.xml Files
231(1)
Adding the Tiles TLDs
231(1)
Your First Tiles Template
232(3)
What Are Tiles Definitions?
235(1)
Tiles Definitions: A JSP-Based Approach
236(12)
Overriding the Attribute Values in a Tiles Definition
238(1)
Using Dummy Values in Your Tiles Definition
239(1)
Disadvantages of JSP Tiles Definitions
239(1)
Anatomy of the tiles-defs.xml File
240(1)
Inheritance Using Tiles Definitions
241(3)
Extending a Tiles Definition
244(1)
Modifying the template.jsp File
245(1)
Adding the New Definition to tiles-defs.xml
246(1)
Modifying the .homePage Definition
247(1)
Mapping Tiles Definitions to Action Forwards
248(4)
Summary
252(3)
Dynamic Forms and the Struts Validator Framework
255(34)
Introducing Dynamic Forms
256(10)
Defining the postStoryForm Struts Form Bean
256(2)
Writing the PostStoryDynaForm.java Implementation
258(5)
Some Thoughts About BeanUtils and the Preceding Code
263(3)
The Jakarta Commons Validator Framework
266(7)
Validator Framework Setup
266(2)
Implementing the Required Fields Validation
268(2)
The maxlength Validation Rule
270(3)
Use the Validator Framework Within an ActionForm Class
273(12)
Writing Your Own Validation Rules
275(1)
Implementing the Vulgarity Rule
275(4)
Adding the Vulgarity Rule to the validator-rules.xml File
279(2)
Struts Validation and Potential Long-Term Consequences
281(1)
Implementing the Vulgarity Rule in a Form
282(1)
An ActionForm Without Java
283(1)
When to Use the Validator Framework
284(1)
Summary
285(4)
Speeding Struts Development with XDoclet
289(28)
Installing XDoclet
291(1)
What Exactly Is XDoclet?
292(7)
From XDoclet to Source, and All the Steps in Between
295(2)
The Available XDoclet Tags
297(1)
Anatomy of an XDoclet Tag
298(1)
Integrating Ant and XDoclet
299(4)
Using Merge Points
302(1)
XDoclet and Struts
303(12)
Declaring Struts Form Beans
304(1)
Declaring Struts Actions
304(2)
XDoclet and Java Inheritance
306(1)
Declaring Application Exceptions
306(2)
Building struts-config.xml Using <webdoclet ..../>
308(1)
XDoclets and the Validator Framework
309(4)
Generating the Validator Tags from Ant
313(2)
Summary
315(2)
Logging and Debugging
317(42)
Why Use Logging?
318(1)
Log Message Levels
319(1)
Simple Web Application Logging
319(6)
Logging with ServletContext
319(1)
Using Commons Logging
320(5)
The Java 1.4 Logging API
325(31)
Apache log4j
328(2)
Using log4j with Commons Logging
330(4)
Log Inheritance
334(3)
Logging Performance
337(1)
Logging Best Practices
338(4)
JBoss and log4j
342(1)
Integrating Logging into JavaEdge
343(6)
Logging in the Web Tier
349(2)
Debugging Struts Applications Using JBoss and Eclipse
351(2)
Debugging the JavaEdge Application
353(2)
Hot-Deploy
355(1)
Debugging the Struts Framework
356(1)
Summary
356(3)
Velocity Template Engine
359(32)
What Is a Template Engine?
359(1)
Getting Started
360(28)
Velocity and VelocityContext Classes
362(1)
Velocity Template Language
362(1)
Variables
363(1)
Accessing Variables
363(1)
Variable Values
364(5)
JavaBean Properties
369(1)
Arithmetic
369(1)
Directives
370(9)
Macros
379(2)
Struts and Velocity
381(1)
VelocityTools
381(7)
Struts and Velocity
388(1)
Best Practices for Velocity Use
388(1)
Use Macros
388(1)
Know When to Use #parse and When to Use #include
388(1)
Use JavaBean Property Names
389(1)
Summary
389(2)
Extending the Struts Framework
391(30)
Extending Action and ActionForm
391(7)
Providing Common Services to Your Actions
392(5)
Hooking into the Action Execution
397(1)
Extending RequestProcessor
398(5)
Building a RequestProcessor
399(1)
Using RequestProcessor Instead of Filter
400(3)
Verifying Host Access with RequestProcessor
403(1)
Creating Configuration Beans
403(2)
Building the JavaEdgeActionMapping
404(1)
Revisiting RequestProcessor
405(4)
Building a Plug-In
409(10)
Newsletter Service Basics
410(1)
NewsletterManager
410(5)
NewsletterTask
415(1)
NewsletterPlugIn
416(3)
Configuring the Plug-In
419(1)
Summary
419(2)
Struts and Ajax
421(12)
Ajax Dissected
421(1)
Ajax on Google
422(1)
Ajax on Yahoo
422(1)
Where Should I Use Ajax?
422(1)
Ajax and Web 2.0
423(1)
Ajax and SOA
423(1)
Ajax Internals
423(3)
Ajax Request-Response Cycle
424(1)
XMLHttpRequest Object
425(1)
Ajax and Struts in Action
426(6)
Cities.jsp
426(3)
GetCitiesNamesAction
429(1)
CitiesDAO
430(2)
Summary
432(1)
APPENDIX A JavaEdge Setup and Installation
433(8)
Environment Setup
433(7)
Installing MySQL
433(3)
Installing JBoss
436(1)
Installing Apache Ant
436(1)
Obtaining the JavaEdge Code and Dependencies
437(1)
Installing the JavaEdge Database
437(1)
Building JavaEdge
438(1)
Deploying JavaEdge
439(1)
Summary
440(1)
APPENDIX B Struts Development Tools
441(32)
Eclipse
442(2)
Eclipse Summary
444(1)
Eclipse Next Step
444(1)
NetBeans
444(3)
JSP, HTML, XML, and DTD Editors
444(2)
In-Process Tomcat Server
446(1)
NetBeans Summary
446(1)
NetBeans Next Step
447(1)
IBM WebSphere
447(5)
Creating a Struts Project
447(1)
Managing Configuration
448(1)
Creating Actions and ActionForms
449(2)
Web Diagrams
451(1)
WebSphere Summary
451(1)
WebSphere Next Step
452(1)
Borland JBuilder 2006
452(5)
Web Projects
452(1)
Configuration File Editor
453(1)
JSP Editor
454(1)
UML Designer
454(1)
JavaDoc Preview
454(2)
Action Designer
456(1)
JBuilder Summary
456(1)
JBuilder Next Step
457(1)
Struts Console
457(4)
Getting Started
457(1)
Editing the Struts Configuration File
458(2)
Editing Other Configuration Files
460(1)
Struts Console Summary
460(1)
Struts Console Next Step
461(1)
Exadel Studio
461(5)
Struts Projects
461(1)
Configuration File Editors
461(2)
XML Editor
463(1)
JSP Editor
463(2)
Web Flow Designer
465(1)
Exadel Studio Summary
465(1)
Exadel Studio Next Step
466(1)
XDoclet
466(1)
Apache JMeter
466(5)
Getting Started
466(1)
Features
466(1)
Creating a Sample Test
467(3)
JMeter Summary
470(1)
JMeter Next Step
471(1)
Summary
471(2)
APPENDIX C Struts and Strecks
473(4)
Using Strecks
473(3)
@Controller and @ActionInterface
474(1)
@NavigateForward
475(1)
@BindSimple and @ValidateRequired
475(1)
What You Can Do with Strecks
476(1)
Is Strecks for Me?
476(1)
Index 477


Kunal Mittal is a consultant specializing in Java technology, the J2EE platform, Web services, and service-oriented architecture technologies. He has co-authored and contributed to several books on these topics. Kunal is working on a BEA Portal project for Sony Pictures Entertainment.