<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java Backed Web Scripts in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253580#M206710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi As far I know there are not much changes in the development and deployment part&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There could be some of the changes on the APIs and classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2012 09:45:48 GMT</pubDate>
    <dc:creator>mitpatoliya</dc:creator>
    <dc:date>2012-08-29T09:45:48Z</dc:date>
    <item>
      <title>Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253579#M206709</link>
      <description>Hi!Where i can see a full tutorial how to create and deploy Java Backed Web Scripts in Alfresco 4?I made that in Alfresco 3, but now i know there are changes!Can anyone provide a good tutorial please?thanks in advance!</description>
      <pubDate>Wed, 29 Aug 2012 09:25:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253579#M206709</guid>
      <dc:creator>toze</dc:creator>
      <dc:date>2012-08-29T09:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253580#M206710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi As far I know there are not much changes in the development and deployment part&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There could be some of the changes on the APIs and classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 09:45:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253580#M206710</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-08-29T09:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253581#M206711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok! Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try the same i made for Alfresco 3.2r.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any doubts i post them here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 09:59:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253581#M206711</guid>
      <dc:creator>toze</dc:creator>
      <dc:date>2012-08-29T09:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253582#M206712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Toze,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide me the tutorial that you have followed to deploy a Java-backend webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oshadha.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 04:54:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253582#M206712</guid>
      <dc:creator>oshadha</dc:creator>
      <dc:date>2012-08-30T04:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253583#M206713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed this two:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#Questions.3F" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#Questions.3F&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you have any doubt you are free to ask&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 07:11:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253583#M206713</guid>
      <dc:creator>toze</dc:creator>
      <dc:date>2012-08-30T07:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253584#M206714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mitpatoliya!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The amp file i created&amp;nbsp; must be in a specific location of tomcat? can you remind me that pls?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 12:26:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253584#M206714</guid>
      <dc:creator>toze</dc:creator>
      <dc:date>2012-08-30T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253585#M206715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;ALF_HOME&amp;gt;/amps in file sysem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ex. C:\Alfresco_4.0\amps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 06:09:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253585#M206715</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-08-31T06:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253586#M206716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 06:11:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253586#M206716</guid>
      <dc:creator>toze</dc:creator>
      <dc:date>2012-08-31T06:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253587#M206717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well i have in FoldersMigration.get.desc.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;shortname&amp;gt;Create Folders&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;description&amp;gt;Create Folders in Alfresco&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;url&amp;gt;/org/toze/AlfrescoAccess/CreateFoldersMigration&amp;lt;/url&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;format default="json"&amp;gt;argument&amp;lt;/format&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;transaction&amp;gt;required&amp;lt;/transaction&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and i have this error too when i try to access the web script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;essage" : "07310003 Cannot locate template processor for template org\/toze\/alfresco\/omc\/server\/CreateFoldersMigration.get.json",&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "exception" : "org.springframework.extensions.webscripts.WebScriptException - 07310003 Cannot locate template processor for template org\/toze\/alfresco\/omc\/server\/CreateFoldersMigration.get.json",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is: Must i have to create a new desc file for json? In version 3 of Alfresco we didnt need to do that&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 11:13:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253587#M206717</guid>
      <dc:creator>toze</dc:creator>
      <dc:date>2012-08-31T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253588#M206718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Toze,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of this: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;format default="json"&amp;gt;argument&amp;lt;/format&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;try this: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;format default="json"&amp;gt;extension&amp;lt;/format&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if it worked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 11:54:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253588#M206718</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-08-31T11:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253589#M206719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Didn't worked&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 07:01:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253589#M206719</guid>
      <dc:creator>toze</dc:creator>
      <dc:date>2012-09-03T07:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253590#M206720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I noticed that the response template is:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;CreateFoldersMigration.get.json&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;If I'm not wrong the response file name should be in the form CreateFoldersMigration.&amp;lt;&lt;/SPAN&gt;&lt;EM&gt;HTTP method&lt;/EM&gt;&lt;SPAN&gt;&amp;gt;.&amp;lt;&lt;/SPAN&gt;&lt;EM&gt;response format&lt;/EM&gt;&lt;SPAN&gt;&amp;gt;, so try naming the response file as CreateFoldersMigration.get.json.ftl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 07:44:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253590#M206720</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-09-03T07:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253591#M206721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The response?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the description file. I need other file? In what location?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 08:33:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253591#M206721</guid>
      <dc:creator>toze</dc:creator>
      <dc:date>2012-09-03T08:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253592#M206722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Usually, an 'ordinary' webscript needs 3 files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) a desc xml field that contains configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) a js file with doing the backend work (like a controller that provides you the filled model)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) a ftl file that helps you to show the results&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you build up a Java backed webscript, you replace the point 2) with a Java implementation but you still need to have the other two files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at &lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/Web_Scripts#How_Do_I_Create_a_Web_Script.3F" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/Web_Scripts#How_Do_I_Create_a_Web_Script.3F&lt;/A&gt;&lt;SPAN&gt; for more info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 08:43:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253592#M206722</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-09-03T08:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253593#M206723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to follow the simplest tutorial here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's no mention of an ftl template.&amp;nbsp; It gives the impression that none is needed, and that the web script will simply return json.&amp;nbsp; Can someone clarify?&amp;nbsp; Also, can someone tell me how to structure the AMP file?&amp;nbsp; The tutorial tells me where the files should end up, but shouldn't that happen by way of the amping process?&amp;nbsp; I don't want to edit files in the webapps/alfresco directory.&amp;nbsp; Also, the tutorial has me editing the existing web-scripts-application-context.xml file, but isn't that in alfresco.war?&amp;nbsp; I don't want to modify that except by amping.&amp;nbsp; Any help is appreciated.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 19:20:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253593#M206723</guid>
      <dc:creator>jlangdon</dc:creator>
      <dc:date>2012-09-11T19:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253594#M206724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First I think that you need to take a look at the examples Google Code project:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://code.google.com/p/alfresco-java-backed-webscripts-demo/" rel="nofollow noopener noreferrer"&gt;http://code.google.com/p/alfresco-java-backed-webscripts-demo/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the same project mentioned in the wiki page here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#The_Demo_Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#The_Demo_Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There's no mention of an ftl template. It gives the impression that none is needed, and that the web script will simply return json. Can someone clarify?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;If you don't want to define an FTL template in output, because you have a Java library that can generate the output, then you have to implement an AbstractWebScript that allows you to manage directly the response object of the HTTP request without defining any FTL template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you have two types of Java-Backed WebScripts: AbstractWebScript and DeclarativeWebScript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The AbstractWebScript, as described above, allows you to manage the response in the execute method like any other MVC framework. For this type of implementation you only need to provide the descriptor and the Java controller class that in this case will also manage the output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The DeclarativeWebScript follows all the pattern defined, this means that you need to define the descriptor, the Java controller and the FTL template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, can someone tell me how to structure the AMP file? The tutorial tells me where the files should end up, but shouldn't that happen by way of the amping process?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;You can take a look at the Google Code project to understand how to build your own amp simply using the same approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 19:56:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253594#M206724</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2012-09-11T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253595#M206725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured this out after finding the download of the amp file at &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/alfresco-java-backed-webscripts-demo/" rel="nofollow noopener noreferrer"&gt;http://code.google.com/p/alfresco-java-backed-webscripts-demo/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's true that you don't need an ftl file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the structure of the amp file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- config&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - templates &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - webscripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - org&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - demo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - simple.get.desc.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - mymoduleid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - log4j.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - module-context.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - mymodule.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- module.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a lot here that isn't mentioned in the tutorial.&amp;nbsp; In some places, the tutorial has you directly editing files in the deployed alfresco/webapps directory, which I think should be avoided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that the bean definition goes in module-context.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"mymoduleid" is whatever you put in module.id in the module.properties file (no mention of this in the tutorial).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The structure of mymodule.jar is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- META-INF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - MANIFEST.MF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - demoscripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - SimpleWebScript.class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this is helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 00:33:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253595#M206725</guid>
      <dc:creator>jlangdon</dc:creator>
      <dc:date>2012-09-12T00:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253596#M206726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Refer &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/AMP_Files" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/AMP_Files&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; for&amp;nbsp; AMP help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can independently also&amp;nbsp; deploy webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create custom-webscript-context.xml file and add your webscript bean there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You can create ftl file and keep it blank if you don't want to use webscript for presentation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 06:28:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253596#M206726</guid>
      <dc:creator>amitabhandari1</dc:creator>
      <dc:date>2012-09-12T06:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253597#M206727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in order to have more info about webscripts in general and about java backed ones, you could refer to this useful doc by jpotts&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article.pdf" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article.pdf&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 09:37:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253597#M206727</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-09-12T09:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Java Backed Web Scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253598#M206728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to deploy the amp with all the examples but I am having some problems as I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco Enterprise v4.0.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(897) schema 5028&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Spring Surf and Spring WebScripts - v1.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Release 1044)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error message that I am getting when executing the ./apply_amps.sh is "07310000 The module (Alfresco Java-Backed WebScripts Samples) cannot be installed on a repo version greater than 2.1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I can change the module.properties inside the .amp and add some comments in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# The following optional properties can be used to prevent the module from being added&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# to inappropriate versions of the WAR file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;#module.repo.version.min=2.0&lt;BR /&gt;&lt;BR /&gt;#module.repo.version.max=2.1&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so the amp will be deployed but I am not sure it will work properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any updated version of the .amp? If not can you please help me to change the .amp so it will works with my Alfresco version?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 12:28:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-web-scripts/m-p/253598#M206728</guid>
      <dc:creator>isastre</dc:creator>
      <dc:date>2012-09-17T12:28:19Z</dc:date>
    </item>
  </channel>
</rss>

