<?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: WebScript File Upload Using Java in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198225#M151355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Java Webscript controller is called first, Javascript Webscript controller is called second. However, if you create your own service Java class, you can call that service class from your javascript Webscript controller.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2009 05:29:33 GMT</pubDate>
    <dc:creator>rogier_oudshoor</dc:creator>
    <dc:date>2009-05-07T05:29:33Z</dc:date>
    <item>
      <title>WebScript File Upload Using Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198220#M151350</link>
      <description>We are developing our WebScripts using Java (extending AbstractWebScript). We want to implement the same functionality described here:http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Uploadusing Java WebScript. Are there any community provided examples for this?</description>
      <pubDate>Fri, 06 Mar 2009 08:47:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198220#M151350</guid>
      <dc:creator>subwiz</dc:creator>
      <dc:date>2009-03-06T08:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: WebScript File Upload Using Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198221#M151351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, this is impossible due to some bad code in the webscript layer. The layer will automatically process any multi-part field for you, and hide the raw results (including the file). This way, there is no way to access the file through Java without correcting the Alfresco code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you can also do, is use Java for what you want to use Java for, and then have a very simple piece of javascript handle the file upload. The webscript system will (try to) call the javascript file, even when you have plugged in your Java class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:46:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198221#M151351</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2009-03-06T09:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: WebScript File Upload Using Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198222#M151352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to add context to our discussion:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=7&amp;amp;t=17197" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=7&amp;amp;t=17197&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have the upload form designed as a WebScript, and we want to encrypt the uploaded stream before writing to Alfresco. So I think your solution will not apply in our case. Are there any other possibilities in our case (one possibility is to write a proxy web-app which does the encryption before upload–but we have already written lots of stuff using WebScripts associated with upload).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to be the issue tracking what we are discussing: &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALFCOM-1747" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALFCOM-1747&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 10:29:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198222#M151352</guid>
      <dc:creator>subwiz</dc:creator>
      <dc:date>2009-03-06T10:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: WebScript File Upload Using Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198223#M151353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your case, i would recommend creating your own Service Class. If you create &amp;amp; register a Java class with the attribute setting &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;parent="baseJavaScriptExtension"&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; in the spring configuration, and add the subnode&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; &amp;lt;property name="extensionName" value="myJavaService" /&amp;gt;&amp;nbsp; &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; you can access it's methods from JavaScript by calling &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;myJavaService.someMethod(arg1); &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;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could extract the contents in javascript, pass whatever you want as arguments to your Java class, and have your java class do whatever it wants to it (including writing it).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 11:07:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198223#M151353</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2009-03-06T11:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: WebScript File Upload Using Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198224#M151354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Actually, this is impossible due to some bad code in the webscript layer. The layer will automatically process any multi-part field for you, and hide the raw results (including the file). This way, there is no way to access the file through Java without correcting the Alfresco code.&lt;BR /&gt;&lt;BR /&gt;What you can also do, is use Java for what you want to use Java for, and then have a very simple piece of javascript handle the file upload. The webscript system will (try to) call the javascript file, even when you have plugged in your Java class.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;In which order are they called?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the javascript file called before/after the java file has been executed or is it executed at the same time ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is send an email to specific users once the file has been uploaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The java part will send the email and the javascript part will process the upload.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The email has to be sent only if the upload successes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 12:09:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198224#M151354</guid>
      <dc:creator>icemaker</dc:creator>
      <dc:date>2009-05-04T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: WebScript File Upload Using Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198225#M151355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Java Webscript controller is called first, Javascript Webscript controller is called second. However, if you create your own service Java class, you can call that service class from your javascript Webscript controller.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 05:29:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198225#M151355</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2009-05-07T05:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: WebScript File Upload Using Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198226#M151356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;We are developing our WebScripts using Java (extending AbstractWebScript). We want to implement the same functionality described here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;using Java WebScript. Are there any community provided examples for this?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Glad to hear that you are developing our WebScripts using Java (extending AbstractWebScript)…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope you will make it well… Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_________________&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.slingshotseo.com/" rel="nofollow noopener noreferrer"&gt;Indianapolis SEO&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:09:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-file-upload-using-java/m-p/198226#M151356</guid>
      <dc:creator>jaime17</dc:creator>
      <dc:date>2009-05-20T08:09:44Z</dc:date>
    </item>
  </channel>
</rss>

