Java-backed webscript

Showing results for 
Search instead for 
Did you mean: 
Established Member

Java-backed webscript

I am following this tutorial to create a folder-listing java-backed webscript. 

Creating a Java-backed web script | Alfresco Documentation 

I have build maven project from eclipse. It is working(able to load localhost:8080/share)

but, when I run the : 

It is displaying the following error:

Message:05090000 Wrapped Exception (with status template): 05090002 Error during processing of the template 'The following has evaluated to null or missing: ==> folder [in template "alfresco/tutorials/javadir.get.html.ftl" at line 3, column 19] Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (!myDefault, ( The failing instruction: ==> ${folder} [in template "alfresco/tutorials/javadir.get.html.ftl" at line 3, column 17]'. Please contact your system administrator.

Community v5.2.0 (r130508-b9) schema 10,004

Help is appreciated!

1 Reply
Established Member

Re: Java-backed webscript

I fixed the problem. It is working fine now