cancel
Showing results for 
Search instead for 
Did you mean: 

Rhino

zezom
Champ in-the-making
Champ in-the-making
I was reading through the Rhino FAQ page at https://developer.mozilla.org/en/Rhino_FAQ 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.
1 REPLY 1

hsohaib
Champ on-the-rise
Champ on-the-rise
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.

Use java as the webscript controller instead of javascript then.