<?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 Passing args to webscripts from jsp in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126624#M89070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to figure out how I can call a webscript from a jsp, with specific arguments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have replaced the browse.jsp with one of my own, and pointed to it in the navigation xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to include the doclist control within the view of each space. so in the desired place in the new mybrowse.jsp, I have the line &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;r:webScript scriptUrl="wcs/ui/doclist" /&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;this generates the control, but it always shows me the content of the companyHome. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To change that, I need to pass a parameter (and I succeed if I do it in the browser) &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;http://alfresco:8080/alfresco/wcs/ui/doclist$&amp;amp;f=0%p=/Company%20Home/shlomi/&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont know how to pass this parameter from within the jsp. when I tried to put the same url I did in the browser, it ignores it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I didnt see any special tags like the jsp:include has (such as jsp&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;aram or anything like that).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please please, I have a deadline this thursday, and I am loosing my mind over it, tell me if my approach is wrong, or what can I do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shlomi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2007 13:01:15 GMT</pubDate>
    <dc:creator>shlomi</dc:creator>
    <dc:date>2007-11-12T13:01:15Z</dc:date>
    <item>
      <title>Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126624#M89070</link>
      <description>Hello,I am trying to figure out how I can call a webscript from a jsp, with specific arguments.I have replaced the browse.jsp with one of my own, and pointed to it in the navigation xml.I want to include the doclist control within the view of each space. so in the desired place in the new mybrowse.j</description>
      <pubDate>Mon, 12 Nov 2007 13:01:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126624#M89070</guid>
      <dc:creator>shlomi</dc:creator>
      <dc:date>2007-11-12T13:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126625#M89071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you can just pass the arguments in the url…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g.&amp;nbsp; wcs/ui/doclist?arg1=1&amp;amp;arg2=2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 14:58:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126625#M89071</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-11-12T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126626#M89072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said in my post, i did try that, and it didnt work for me. When I tried to print the arg (in the webscript), it threw an exception that the variable is not declared, as opposed to when I ran the same webscript through the browser with that url, and it printed the argument's value, and showed me the correct files..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do you know of any other option, or perhaps what could I have done wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shlomi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 15:28:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126626#M89072</guid>
      <dc:creator>shlomi</dc:creator>
      <dc:date>2007-11-12T15:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126627#M89073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now Iam truly confused.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to change the names of the arguments, and for some it worked, and for some it didnt. now, out of the main blue, it decided to work with the 'p' variable.. (really, I changed nothing but the names of the variable in the sending jsp and reciving ftl)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyhow, can you please tell me how do I get the current path (eg: /Company Home/Shlomi/) within the jsp? I tried #{NavigationBean.currentNode.name}, but that gives me just the last name (eg: Shlomi).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked up Node in the javadoc (&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/web-client/index.html?org/alfresco/web/bean/repository/Node.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/web-client/index.html?org/alfresco/web/bean/repository/Node.html&lt;/A&gt;&lt;SPAN&gt;), but I dont see anything helpful..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 17:12:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126627#M89073</guid>
      <dc:creator>shlomi</dc:creator>
      <dc:date>2007-11-12T17:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126628#M89074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As Dave said in his reply, you can pass parameters directly on the url to the webscript component, for example:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;r:webScript scriptUrl="/wcs/ui/doclist?p=/Company%20Home/Guest%20Home" /&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;This works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2007 11:08:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126628#M89074</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-11-22T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126629#M89075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, it seems to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I probably did something wrong in the beginning, but it works now. Thanks for both your replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shlomi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 19:08:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126629#M89075</guid>
      <dc:creator>shlomi</dc:creator>
      <dc:date>2007-11-23T19:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126630#M89076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi can you please tell me the steps to do this. I am kinda stuck. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What i am trying to do is include the output of a webscript inside a jsp page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this is exactly what you have done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be appreciated.. Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 19:20:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126630#M89076</guid>
      <dc:creator>faisal</dc:creator>
      <dc:date>2009-07-16T19:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126631#M89077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it has been some time since I touched this code, but i believe I did exactly what kevinr said, and just used the r:webscript command…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried doing that? what does it do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 20:18:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126631#M89077</guid>
      <dc:creator>shlomi</dc:creator>
      <dc:date>2009-07-16T20:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126632#M89078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, I need to pass the &lt;/SPAN&gt;&lt;STRONG&gt;noderef&lt;/STRONG&gt;&lt;SPAN&gt; argument of my currentNode and I modified afterward the call of my WS as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;r:webScript scriptUrl="/wcservice/custom/doclist" context="#{NavigationBean.currentNode.nodeRef}" /&amp;gt;&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But the problem is that I can't get back this value from the class of my WS&amp;nbsp; :?:&amp;nbsp; :!: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this call but that did not work&amp;nbsp; :!: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FacesContext context = FacesContext.getCurrentInstance();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String homeSpaceId = Application.getCurrentUser(context).getHomeSpaceId();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef nodeRef = new NodeRef(Repository.getStoreRef(), homeSpaceId);&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 10:52:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126632#M89078</guid>
      <dc:creator>lamba</dc:creator>
      <dc:date>2010-06-15T10:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Passing args to webscripts from jsp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126633#M89079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The declaration had to be as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;r:webScript scriptUrl="/wcservice/custom/doclist?nodeRef={noderef}" context="#{NavigationBean.currentNode.nodeRef}" /&amp;gt;&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The recovery of this variable from my class is simply by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String nodeRefStr = request.getParameter("nodeRef"); &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;NodeRef nodeRef = new NodeRef(nodeRefStr);&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Praise to Allah, the Lord of the Worlds &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 15:26:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-args-to-webscripts-from-jsp/m-p/126633#M89079</guid>
      <dc:creator>lamba</dc:creator>
      <dc:date>2010-06-15T15:26:50Z</dc:date>
    </item>
  </channel>
</rss>

