Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • How to get the absolute path?

    0 answers - 902 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    I wrote a simple portlet and am trying to read the folder menu within
    a portlet. I can read the relative url's but how can I get the
    absolute URL? And also where is $jetspeed defined? If I set $jetspeed
    then I guess doing <td>${linkUrl} will work.
    This is my .vm file:
    #set($navigationsStandardMenu = $site.getMenu("page-navigations"))
    #if(!$navigationsStandardMenu.empty)
    <table cellpadding="0" cellspacing="4" border="0" width="100%">
    #foreach($element in $())
    <tr>
    #set($linkUrl = $jetspeed.getAbsoluteUrl($element.url))
    <td>$element.url</td>
    </tr>
    #end
    </table>
    #end
    Thanks
    Elif
    To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
    For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org

Re: How to get the absolute path?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "Java"

EMSDN.COM