Writing and deploying Web Scripts
As you know, writing a Web Script requires creating some files in certain locations. Here in this recipe we will see how this can be done. The best part is you do not require any Java development environment; no Eclipse is required for writing Web Scripts, no Java programming knowledge is essential. However, if you wish to create Java-backed Web Scripts, you may need these.
In the latter examples and illustrations, we will create our Web Scripts in the classpath folder in a new package, com\infoaxon
. Let's say we will create a Web Script with the service-ID showhomedetails
.
We expect the Web Script to return the contents of the current user's home space in a structured HTML format.
How to do it...
1. First we will create the folder where the Web Script files will be stored. Create a folder named
com
under\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\
, create the folderinfoaxon
under this. Thus we will be creating our Web Script files...