Thank Stef,
it works! I have to work on Strings but...

I still wonder if there is any key in Rundata.getParameters() returning it
without any further operation.

Bye Stefano

----- Original Message ----- 
From: "Stefan Rennick Egglestone" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Friday, May 21, 2004 4:13 PM
Subject: Re: Retrieve url from RunData


> One possibility is via
>
> request.requestURI()
>
> in your JSP.
>
> I've tried it on one portlet, and it returns
>
/WorkflowPortal/portal/media-type/html/user/test/page/default.psml/js_pane/2
11
> which is not quite what you want, but may be good enough. (note -
> request is of type javax.servlet.http.HttpServletRequest)
>
> Stef
>
> Stefano Bianchi wrote:
>
> >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]
> >
> >
> >
>
>
>
> This message has been scanned but we cannot guarantee that it and any
> attachments are free from viruses or other damaging content: you are
> advised to perform your own checks.  Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
> ---------------------------------------------------------------------
> 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