AnsweredAssumed Answered

Importing a script into a webscript

Question asked by hpalma on Oct 2, 2008
Latest reply on Mar 1, 2011 by boxie
I have a webscript "search.get.js" in which i'd like to import a javascript file that is either on the repository or the classpath, doesn't really matter.

I've tried both the sintax:

<import resource="/Company Home/Data Dictionary/Scripts/myscript.js"/>

that works just fine in the javascript files, and the syntax:

<import resource="classpath:alfresco/templates/webscripts/myscript.js"/>

None of them work. I never get the functions defined in the script imported.
Any ideas ?