title: How to show site page urls in Liferay jsp portlet?
body: <p>I would like to show some <strong>site page urls</strong> in a <strong>Liferay jsp portlet</strong>. I'm using Liferay 6.1 EE. I would like to use page's localized title and other custom fields added (e.g. cssClass).</p>
  
  <p>I have done the same for the navigation bar, for my <strong>velocity theme</strong>:</p>
  
  <pre><code>#if (!$page_group.isUser())
  
      #set($layoutLocalService = $serviceLocator.findService("com.liferay.portal.service.LayoutLocalService"))
  
      &lt;ul id="quickLinks"&gt;
          &lt;li&gt;
              #set($currFriendlyUrl = "/i-want-to")
              #set($currLayout = $layoutLocalService.getFriendlyURLLayout($group_id, true, $currFriendlyUrl))
              &lt;a href="$currLayout.getRegularURL($request)" $currLayout.getTarget() class="$currLayout.getExpandoBridge().getAttribute('cssClass')"&gt;$currLayout.getName($locale)&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  #end
  </code></pre>
  
  <p>How could I write the same code using jsp?</p>
  
  <p>I have found a <a href="https://stackoverflow.com/questions/12045055/rendering-liferay-page-urls-inside-of-portlets-liferay-6-1">similar quesion</a>, but there was not a clear code example for jsp in answers.</p>