AnsweredAssumed Answered

A Web Script Example need some clarification

Question asked by alihammad on Nov 12, 2009
Latest reply on Nov 13, 2009 by alihammad
Here I am referring to an example from Alfresco Developer Guide.

The example creates hello world web script. The code and the steps as mentioned in the book are pasted at the end.

My questions are
1- where both xml and .ftl files are stored on the machine?
2- The example is explained as follow in the book . " The Alfresco web application is configured to map all requests matching
the pattern /alfresco/service/* to the web script request dispatcher servlet. " Which file contains these configurations?

Here is the actual example

1.Log in to Alfresco.
2. Navigate to |Company Home|Data Dictionary|Web Scripts Extensions.
3. Create a file called helloworld.get.desc.xml in the Web Scripts
Extensions folder with the following content:
<shortname>Hello World</shortname>
<description>Hello world web script</description>
4. Create a file called helloworld.get.html.ftl with the following content:
<p>Hello, ${}!</p>

5. Go to http://localhost:8080/alfresco/service/index and press the
Refresh button. Click the List Web Scripts link—you should be able to find
the web script you just defined.
6. Now point your browser to http://localhost:8080/alfresco/service/
helloworld?name=Jeff. You should see:
Hello, Jeff!