Book Image

Learning Alfresco Web Scripts

By : Ramesh Chauhan
Book Image

Learning Alfresco Web Scripts

By: Ramesh Chauhan

Overview of this book

Table of Contents (18 chapters)
Learning Alfresco Web Scripts
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 6. Creating Java-backed Web Scripts

In this chapter, we will cover how to create Java-backed Alfresco web scripts in detail. In order to do this, we will cover the following:

  • Defining a sample use case scenario first

  • Getting ready and identifying the required components to be developed

  • Developing a Java-backed web script step by step

  • Deploying and registering the web script

  • Testing the web script as per the use case scenario

  • Understanding the difference between the web script framework's helper classes to create a Java-backed controller

  • Looking at some useful pointers to use controllers effectively

When developing web scripts in Alfresco, there are two choices to write the controller implementation for a web script: a JavaScript-backed controller and Java-backed controller. Depending on your preference, you can choose to develop controller implementation from these two when required. With a JavaScript-backed controller, the development cycle can get faster compared to a Java-backed controller...