AnsweredAssumed Answered

Alfresco web script

Question asked by stecip on Sep 4, 2009
Latest reply on Sep 10, 2009 by diegoitaliait
Hallo everybody,

I've a problem with helloword web script example….
1. I add a controller named helloword.get.js with the following content:
         model.foo = "bar";
2. I Update my helloworld.get.html.ftl file with the following content:
        <html>
          <body>
                 <p>Hello, ${args.name}!</p>
                 <p>Foo: ${foo}</p>
        </body>
     </html>
3.I go to my web browser and enter URL
       http://localhost:8080/alfresco/service/helloworld?name=Jeff

and this error return on the screen:
     08040045 Wrapped Exception (with status template): 08040044 Error during processing of the template 'Expression foo    is undefined on line 4, column 11 in helloworld.get.html.ftl.'. Please contact your system administrator.
Can someone help my please……

Outcomes