Hy Stefano,
To retrive a Link to the current page in the .vm files, I'm using $jslink command.
For more information check out here: "http://portals.apache.org/jetspeed-
1/portlet_config_Velocity.html"

I hope that could be useful for your needs,
Luca Bonzagni.


---------------------------------
Ciao Stefano,
Per ottenere un link alla pagina corrente da file con estensione .vm, st� utilizzando 
il 
comando $jslink.
Per ulteriori informazioni ho trovato utile il link: 
"http://portals.apache.org/jetspeed-
1/portlet_config_Velocity.html"


Spero che questo ti possa essere utile
Luca Bonzagni.
----------------------------------




__________________________________
Ing. Luca Bonzagni
e-mail: [EMAIL PROTECTED]


-----Original Message-----
From: "Stefano Bianchi" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Date: Fri, 21 May 2004 15:53:32 +0200
Subject: Retrieve url from RunData

> HEllo!
> 
> With this I can get the page name:
> 
> <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld'
> prefix='jetspeed'
> %>
> <%@ page import =
> "org.apache.jetspeed.services.resources.JetspeedResources"
> %>
> <%@ page import = "org.apache.turbine.util.RunData" %>
> 
> <%
>   RunData data = (RunData) request.getAttribute("rundata");
>   String currentPage = data.getParameters().getString("page");
> %>
> 
> How can I get the whole link such as:
> 
>     http://www.mysite.org/user/anon/page/default.psml ?
> 
> Thank you
> Stefano
> 
> Ing. Stefano Bianchi
> Softeco Sismat S.p.A.
> Via De Marini, 1 - WTC Tower
> 16149 Genoa (ITALY)
> e-mail: [EMAIL PROTECTED]
> tel: +39 010 60.26.368
> fax: +39 010 60.26.350
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to