AnsweredAssumed Answered


Question asked by zezom on Apr 14, 2010
Latest reply on Apr 14, 2010 by hsohaib
I was reading through the Rhino FAQ page at and I saw an example that would be very useful for me to use in my webscripts.

It says that there should be a top level variable called package and that this can be used to access the raw java that is behind the javascript interface. How ever when I try to access this variable I get the error.

Failed to execute script '/test/test07.get.js (in repository store workspace://SpacesStore/Company Home/Data Dictionary/Web Scripts)': identifier is a reserved word

I'm guessing that this variable has been deliberately removed from use for security reasons? I'm actually hoping that I got it wrong and that some one can tell me how to access java from my javascript.

I'm trying to access org.alfresco.repo.content.metadata to get the metadata from a word doc but I can't find any way to do this using just the javascript API.