AnsweredAssumed Answered

Webscripts with searchengine friendly urls

Question asked by flm on Feb 13, 2008
Latest reply on Feb 14, 2008 by davidc
Hi,

I tried to implement a webscript with search engine friendly urls, i.e. parameters in as path elements. I couldn't make it work so a created a really simple example which still does not provide the parameter in the javascript:

testsefurl.get.desc.xml:
<webscript>
  <shortname>Test</shortname>
  <description>Test</description>
  <url>/test/{id}</url>
</webscript>

testsefurl.get.js:
model.result = args.id;

testsefurl.get.html.ftl:
<html>
<body>
${result}
</body>
</html>

Accessing http://localhost:8080/alfresco/service/test/1234 returns an error that the result is undefined - the problem is that the parameter is not passed to the args array in the javascript.

I am using the 2.9C nightly and I am wondering if I stumbled on a bug or if I missed some detail in the webscript definition.

Regards,
Florian

Outcomes