Rhino

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 02:31 AM
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.
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.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 03:16 AM
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.
