12-12-2008 11:06 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="webscript.org.alfresco.demo.simple.get"
class="org.alfresco.module.demoscripts.SimpleWebScript"
parent="webscript">
</bean>
</beans>
<webscript>
<shortname>The World's Simplest Webscript</shortname>
<description>Hands back a little bit of JSON</description>
<url>/demo/simple</url>
<authentication>none</authentication>
<format default="html">argument</format>
</webscript>
<html>
${res}
</html>
package org.alfresco.module.demoscripts;
import java.util.HashMap;
import java.util.Map;
import org.alfresco.web.scripts.DeclarativeWebScript;
import org.alfresco.web.scripts.WebScriptRequest;
import org.alfresco.web.scripts.WebScriptStatus;
public class SimpleWebScript extends DeclarativeWebScript
{
@Override
protected Map<String, Object> executeImpl(WebScriptRequest req, WebScriptStatus status)
{
Map<String, Object> model = new HashMap<String, Object>();
model.put("res", "My result");
return model;
}
}
15:40:01,379 ERROR [freemarker.runtime]
Expression node is undefined on line 2, column 4 in simple.get.html.ftl.
The problematic instruction:
———-
==> ${res} [on line 2, column 4 in simple.get.html.ftl]
———-
01-03-2009 12:16 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.