title: Unable to use Liferay Freindly URL Mapper
body: <p>I was following this document from Liferay Website to work Map Firendly URL Mappings </p>
  
  <p><a href="http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/adding-friendly-url-mapping-to-the-portlet" rel="nofollow">http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/adding-friendly-url-mapping-to-the-portlet</a></p>
  
  <p>I am using   Liferay version=6.1.0</p>
  
  <p>During HyperLink navigation , i was getting the following url </p>
  
  <pre><code>http://localhost:8080/web/guest/what-we-do?p_p_id=sai_WAR_Saiportlet&amp;
  p_p_lifecycle=0&amp;p_p_state=normal&amp;p_p_mode=view&amp;p_p_col_id=column-1
  &amp;_sai_WAR_Saiportlet_jspPage=%2Fhtml%2Fsai%2Fedit.jsp
  </code></pre>
  
  <p>To modify the above i have tried to use Friendly URL Mapper and i have done the following way</p>
  
  <p>Inside liferay-portlet.xml file .</p>
  
  <pre><code>&lt;portlet&gt;
          &lt;portlet-name&gt;sai&lt;/portlet-name&gt;
          &lt;icon&gt;/icon.png&lt;/icon&gt;
           &lt;friendly-url-mapper-class&gt;com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper&lt;/friendly-url-mapper-class&gt;
           &lt;friendly-url-mapping&gt;sai&lt;/friendly-url-mapping&gt;
           &lt;friendly-url-routes&gt;com/test/sai-friendly-url-routes.xml&lt;/friendly-url-routes&gt;
          &lt;instanceable&gt;false&lt;/instanceable&gt;
          &lt;header-portlet-css&gt;/css/main.css&lt;/header-portlet-css&gt;
          &lt;footer-portlet-javascript&gt;
              /js/main.js
          &lt;/footer-portlet-javascript&gt;
          &lt;css-class-wrapper&gt;sai-portlet&lt;/css-class-wrapper&gt;
      &lt;/portlet&gt;
  </code></pre>
  
  <p>Created a new file by name sai-friendly-url-routes.xml inside</p>
  
  <pre><code>D:\liferay-plugins-sdk-6.1.0-SNAPSHOT\portlets\Sai-portlet\docroot\WEB-INF\src\com\test\sai-friendly-url-routes.xml
  </code></pre>
  
  <p>The content inside sai-friendly-url-routes.xml is </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE routes PUBLIC "-//Liferay//DTD Friendly URL Routes 6.1.0//EN" "http://www.liferay.com/dtd/liferay-friendly-url-routes_6_1_0.dtd"&gt;
  
  &lt;routes&gt;
     &lt;route&gt;
        &lt;pattern&gt;/{mvcPathName}&lt;/pattern&gt;
        &lt;generated-parameter name="mvcPath"&gt;/{mvcPathName}.jsp&lt;/generated-parameter&gt;
     &lt;/route&gt;
  &lt;/routes&gt;
  </code></pre>
  
  <p>But i observed there is no change in the url </p>
  
  <pre><code>http://localhost:8080/web/guest/what-we-do?p_p_id=sai_WAR_Saiportlet&amp;p_p_lifecycle=0&amp;p_p_state=normal&amp;p_p_mode=view&amp;p_p_col_id=column-1&amp;p_p_col_count=1&amp;_sai_WAR_Saiportlet_jspPage=%2Fhtml%2Fsai%2Fedit.jsp
  </code></pre>
  
  <p>Please let me know where exactly i am doing mistake .</p>