Behind the scenes of web script execution
Let's try to understand at a high level what happens on a web script being hit in different scenarios such as when a web script does not have a controller and when it does.
A web script without a controller
To execute the first web script we created without controller, we just hit the URL http://localhost:8080/alfresco/service/helloworld?name=Ramesh
on a web browser, which is basically a HTTP GET request call.
All the incoming requests matching the URL pattern /alfresco/service/*
are mapped to the web script request dispatcher servlet in the Alfresco web application configuration.
The servlet then passed the request to the Web Script Runtime to process the web script.
The Web Script Runtime passed the control to the Web Script Container. The Web Script Container internally identified which web script to execute based on the invoked web script URL, HTTP method, and the web script descriptor document helloworld.get.desc.xml
.
We have not specified any...