Configuration document – it's optional

It is possible to specify configuration parameters for Alfresco web scripts. They can be accessed from the controller as well as the response template. Just to understand the concept, let's take a simple example where you want to display the server environment (development, testing, staging, or production server) in your web script output. One thing that you can do is specify the same in controller, but ideally, a controller should not worry about such configurations. Instead, this can be handled separately and the controller or template should just use the values. With the web script configuration document, it is possible to do script specific configuration.

Create helloworld.get.config.xml at the Repository ...

Get Learning Alfresco Web Scripts now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.