<?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: Decode in Java webscript  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/decode-in-java-webscript/m-p/46431#M18500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should not be encoding the entire URL arguments via encodeURIComponent. It is more appropriate to encode only the values individually before combining them into the URL. So the URL should look more like&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/vs/insurance-sub-type?company%3DCompany%201%26insurancetype%3DD%26A%20aaa" style="color: #1e88e5; background-color: #ffffff; border: 0px; text-decoration: none; font-size: 11px;" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/vs/insurance-sub-type?company=Company%201&amp;amp;insurancetype=D%26A%20aaa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Note: You also do not need the leading slash in your URL addition since the PROXY_URI already ends with a slash)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2018 08:31:08 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-08-07T08:31:08Z</dc:date>
    <item>
      <title>Decode in Java webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/decode-in-java-webscript/m-p/46430#M18499</link>
      <description>Hello All,I am calling a java webscript from a ftl.&amp;nbsp;var uri = Alfresco.constants.PROXY_URI+"/vs/insurancetype?" + encodeURIComponent("company="+companyValue+"&amp;amp;insurancetype="+insuranceValue);this.register = function () {Alfresco.util.Ajax.jsonGet({&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;url: uri,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;successCallback: {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;</description>
      <pubDate>Mon, 06 Aug 2018 11:15:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/decode-in-java-webscript/m-p/46430#M18499</guid>
      <dc:creator>ratik_singhal</dc:creator>
      <dc:date>2018-08-06T11:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Decode in Java webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/decode-in-java-webscript/m-p/46431#M18500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should not be encoding the entire URL arguments via encodeURIComponent. It is more appropriate to encode only the values individually before combining them into the URL. So the URL should look more like&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/vs/insurance-sub-type?company%3DCompany%201%26insurancetype%3DD%26A%20aaa" style="color: #1e88e5; background-color: #ffffff; border: 0px; text-decoration: none; font-size: 11px;" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/vs/insurance-sub-type?company=Company%201&amp;amp;insurancetype=D%26A%20aaa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Note: You also do not need the leading slash in your URL addition since the PROXY_URI already ends with a slash)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 08:31:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/decode-in-java-webscript/m-p/46431#M18500</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-08-07T08:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Decode in Java webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/decode-in-java-webscript/m-p/46432#M18501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried this way too...Only encode value "A&amp;amp;B Company" but still in WebScriptRequest I am getting full path and parameters value without encoding. I have tried to decode as well in java webscript&amp;nbsp;as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 09:00:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/decode-in-java-webscript/m-p/46432#M18501</guid>
      <dc:creator>ratik_singhal</dc:creator>
      <dc:date>2018-08-07T09:00:18Z</dc:date>
    </item>
  </channel>
</rss>

