Adding arguments to a web script

Let's say we want to modify our first web script to display the name too in the web script response, for example, Hello! Ramesh. It can be done in a simple way by passing the name as the URL argument of the web script and then using this argument to generate the response in the FreeMarker template. In order to do this, we will have to perform the following steps:

  1. Log in to Alfresco Share UI.
  2. Click on the Repository link from the top header.
  3. Edit the descriptor file helloworld.get.desc.xml at Data Dictionary | Web Scripts Extension location as follows:
    <webscript>
      <shortname>Hello World</shortname>
      <description>First webscript Hello world</description>
      <url>/helloworld?name={argumentName}</url>
    </webscript>
  4. Edit the ...

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.