AnsweredAssumed Answered

Java Backed Web Script Example

Question asked by nm_santos on Jun 1, 2012
Latest reply on Mar 8, 2013 by tbedford

I'm following the tutorial located at

after completing all the steps up to the java class, when I try to access the url (After rebooting the server), I always get the following error:

500 Description:    An error inside the HTTP server which prevented it from fulfilling the request.

Message:   05010002 Wrapped Exception (with status template): 05010007 Error during processing of the template 'Expression folder is undefined on line 3, column 19 in org/example/javadir.get.html.ftl.'. Please contact your system administrator.

Exception:   freemarker.core.InvalidReferenceException - Expression folder is undefined on line 3, column 19 in org/example/javadir.get.html.ftl.

Anyone has any idea why?

Here's the javadir.get.html.ftl file:
  <title>Folder ${folder.displayPath}/${}</title>
   Alfresco ${server.edition} Edition v${server.version} : dir
  Contents of folder ${folder.displayPath}/${}
   <#list folder.children as child>
   <td><#if child.isContainer>d</#if></td>
   <#if verbose>
     <td><#if child.isDocument>