作者:Dave Newton
出版日期:June 15, 2009
出版社:其它
页数:384
ISBN:ISBN-10: 1847193390 ISBN-13: 978-1847193391
文件格式:PDF
Product Description
A beginner’s guide for Java developersDesign, develop, test, and deploy your web applications using Struts 2 frameworkNo prior knowledge of JavaScript and CSS is requiredApply the best of agile development techniques and TDD techniquesStep-by-step instructions and careful explanations with lots of code examplesIn Detail
Struts 2.1 is a modern, extensible, agile web application framework suitable for both small- and large-scale web applications.
The book begins with a comprehensive look at Struts 2.1 basics,interspersed with detours into more advanced development topics. You’lllearn about configuring Struts 2.1 actions, results, and interceptorsvia both XML and Java annotations. You’ll get an introduction to mostof the Struts 2.1 custom tags and learn how they can assist in rapidapplication prototyping and development.
From there you’ll make your way into Struts 2.1’s strong support forform validation and type conversion, which allows you to treat yourform values as domain objects without cluttering your code. A look atStruts 2.1’s interceptors is the final piece of the Struts 2.1 puzzle,allowing you to leverage the standard Struts 2 interceptors as well asimplement your own custom behavior.
After covering Struts 2.1 you’ll journey into the world ofJavaScript, a surprisingly capable language, the Document Object Model(DOM), and CSS, and learn how to create clean and concise client-sidebehavior. You’ll leverage that knowledge as you move on to Struts 2themes and templates, which give you a powerful way to encapsulatesite-wide user interface behavior.
The book closes with a look at some tools that make the applicationdevelopment life cycle easier to manage, particularly in a teamenvironment, and more automatic.
What you will learn from this book?
Explore the features of Struts 2.1 to develop your applicationEnhance your web application by writing your own custom result typeCreate your own type converter to handle custom data typesAutomatically generate application and development documentationLearn good exception handling practices for your applicationsImplement rich client behavior using JavaScript, the DOM, and CSSCreate custom themes and templates to make shorter, cleaner JSP pagesRun many types of tests both to prove functionality and to make change safeApproach
This book takes a clear approach, focusing on one topic per chapter,but interspersing other issues in the mainline text and in chapterdetours. Taking a practical approach, it discusses agile webdevelopment using Struts 2, with plenty of examples for betterunderstanding.
Who this book is written for?
This book is for Java developers who are interested in developingweb applications using Struts. If you need a comprehensive introductionto Struts 2.1, along with the most important aspects of additional webapplication development technologies, agile programming practices, toolcreation, and application life cycle management this book is for you.You don’t need to know JavaScript and CSS to use this book as theauthor will teach you the required basics.
If you are a Struts 1 or WebWork user and wish to go ahead and migrate to Struts 2, this practical guide is also for you.
About the Author
Dave Newton, a Struts PMC member, has been a professional developerfor over twenty years, getting his start in Lisp and Smalltalkdevelopment, moving on to a lengthy stint in embedded system, game, anddevice driver development, before (confusingly) finding himself writingJava-based web applications for a variety of clients.
He is a strong proponent of agile practices and tool creation anduse, particularly in relationship to documentation generation andtesting. He’s a regular (if crabby) fixture on the Struts user mailinglist, prodding people to read the documentation and think outside thebox.
Dave Newton Dave Newton, a Struts PMC member, hasbeen a professional developer for over twenty years, getting his startin Lisp and Smalltalk development, moving on to a lengthy stint inembedded system, game, and device driver development, before(confusingly) finding himself writing Java-based web applications for avariety of clients.
He is a strong proponent of agile practices and tool creation anduse, particularly in relationship to documentation generation andtesting. He’s a regular (if crabby) fixture on the Struts user mailinglist, prodding people to read the documentation and think outside thebox.