We should now have a high-level understanding that the web script framework in Alfresco supports JavaScript-backed web scripts and uses the RhinoScript processor to execute JavaScript-backed web scripts. In the out-of-the-box web script framework implementation as provided in spring-webscripts-*.jar
, the script processor implementation is org.springframework.extensions.webscripts.processor.JSScriptProcessor
and is registered with the script processor registry. However, in Alfresco, there is an extended implementation to register the script processor with the web script processor registry in the web script framework in Alfresco. Let's try to understand how the JavaScript processor is configured with the web script framework in Alfresco. If you take a look at web-scripts-application-context.xml
under tomcat\webapps\alfresco\WEB-INF\classes\alfresco
inside your Alfresco-installed directory, there is a bean entry for the org.springframework.extensions.webscripts...
Learning Alfresco Web Scripts
By :
Learning Alfresco Web Scripts
By:
Overview of this book
Table of Contents (18 chapters)
Learning Alfresco Web Scripts
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting Familiar with Web Scripts
It's Time for the First Web Script
Understanding the Web Script Framework
Building Blocks of Web Scripts
Invoking Web Scripts
Creating Java-backed Web Scripts
Understanding JavaScript-based Web Scripts in Detail
Deployment, Debugging, and Troubleshooting Web Scripts
Mavenizing Web Scripts
Extending the Web Script Framework
Index
Customer Reviews