<?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 Implicit argument in AbstractWebScript in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/implicit-argument-in-abstractwebscript/m-p/30684#M13057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New to Alfresco.&lt;/P&gt;&lt;P&gt;I am writing Java-backed AbstractWebScript. I need to use implicit arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My URI looks like:&lt;/P&gt;&lt;P&gt;mydocuments/param1/param2&lt;/P&gt;&lt;P&gt;The caller will call this URI as:&amp;nbsp;&lt;SPAN&gt;documents/value1/value2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get a handle on param1 and param 2 (and their values) inside the execute method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public class MyWebScript extends AbstractWebScript{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;// I need to get the value of param1 and param2 inside this method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;How do I get a handle on param1 and param2 inside the execute method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I defined it as explicit argument in the URI (as /param1=value1&amp;amp;param2=value2), I know that I can get them as req.getParameter("param1") API. But as because I am using the implicit argument (as opposed to explicit argument), how do I get a handle of param1 and param2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 16:05:46 GMT</pubDate>
    <dc:creator>raghav</dc:creator>
    <dc:date>2017-03-30T16:05:46Z</dc:date>
    <item>
      <title>Implicit argument in AbstractWebScript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/implicit-argument-in-abstractwebscript/m-p/30684#M13057</link>
      <description>New to Alfresco.I am writing Java-backed AbstractWebScript. I need to use implicit arguments.My URI looks like:mydocuments/param1/param2The caller will call this URI as:&amp;nbsp;documents/value1/value2I need to get a handle on param1 and param 2 (and their values) inside the execute method.public class MyWe</description>
      <pubDate>Thu, 30 Mar 2017 16:05:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/implicit-argument-in-abstractwebscript/m-p/30684#M13057</guid>
      <dc:creator>raghav</dc:creator>
      <dc:date>2017-03-30T16:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit argument in AbstractWebScript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/implicit-argument-in-abstractwebscript/m-p/30685#M13058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API req.getPathInfo() returns the values of the parameters as:&lt;/P&gt;&lt;P&gt;myDocuments/value1/value2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, you can use StringTokenizer to get the value of each parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 20:40:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/implicit-argument-in-abstractwebscript/m-p/30685#M13058</guid>
      <dc:creator>raghav</dc:creator>
      <dc:date>2017-03-30T20:40:12Z</dc:date>
    </item>
  </channel>
</rss>

