title: passing parameters to a liferay portlet
body: <p>I have designed a webpage with a single portlet.
  I want to pass parameters to this portlet.
  So I am calling my webpage this way (on a local liferay instance):
  <a href="http://localhost:8080/group/" rel="nofollow">http://localhost:8080/group/</a>/?param=1</p>
  
  <p>To avoid misunderstandings, I am not just trying to pass parameters between pages of a portlet (controller to view). I know how to do this and it works fine.
  In this case I am trying to start my portlet with parameters from the URL hosting it.</p>
  
  <p>My understanding from the docs is that the portlet is not able to access the URL parameters
  The advised solution that I read about was to use "friendly-url-mapper".</p>
  
  <p>I did not manage to get it to work. Here is what I did so far:</p>
  
  <p>I added into liferay-portlet.xml:</p>
  
  <pre><code>&lt;friendly-url-mapper-class&gt;com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper&lt;/friendly-url-mapper-class&gt;
  &lt;friendly-url-mapping&gt;view&lt;/friendly-url-mapping&gt;
  &lt;friendly-url-routes&gt;friendly-url-routes-for-parameters.xml&lt;/friendly-url-routes&gt;
  </code></pre>
  
  <p>Is view the correct value to set? Real doubt about it.</p>
  
  <p>I created friendly-url-routes-for-parameters.xml with this content:</p>
  
  <pre><code>&lt;routes&gt;
      &lt;route&gt;
          &lt;pattern&gt;/result?{match}&lt;/pattern&gt;
          &lt;implicit-parameter name="param"&gt;{match}&lt;/implicit-parameter&gt;
      &lt;/route&gt;
  &lt;/routes&gt;
  </code></pre>
  
  <p>/result is mapped to a result.jsp page into my controller class (this part works):</p>
  
  <p>I would expect that :
  <a href="http://localhost:8080/group/" rel="nofollow">http://localhost:8080/group/</a>/?param=
  and / or
  <a href="http://localhost:8080/group/" rel="nofollow">http://localhost:8080/group/</a>//-/view/?param=
  would redirect to my result.jsp with the ?param= parameter.</p>
  
  <p>What did I not understand correctly?</p>