Flo�mann Christoph wrote:
And where can we find that code?


See src/java/org/apache/jetspeed/util/template/BaseJetspeedLink.java

-----Original Message-----
From: Archana Turaga [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 4:44 PM
To: Jetspeed Users List
Subject: RE: $jslink, what is the java equivalent?


The way I did is write my own class that calls the BasEJetspeedLink (jslink java class) which is a singleton. You can look at that code....it is pretty straightforward.It works perfectly okay in the jsp world.

-----Original Message-----
From: Stefan Rennick Egglestone [mailto:[EMAIL PROTECTED] Sent: Friday, June 25, 2004 8:28 AM
To: Jetspeed Users List
Subject: Re: $jslink, what is the java equivalent?


The way I've done this, which I'm sure is not a good way to do it at all

is as follows. In your jsp, call

Portlet thisPortlet = (Portlet)request.getAttribute("portlet");
String pageID = portlet.getPortletConfig().getPageID()

The pageID is then a string which looks somehting like user/test/html/default.psml

You can then create a link to this page suing this information, to look something like

portal/media-type/html/user/test/page/default.psml/

Stijn de Witt wrote:


You can get the current location from your Velocity template using

$jslink

right? My question is, how do I do the equivalent, getting the URL to

the

current page, from Java?

TIA,
-Stijn


-- Rapha�l Luta - [EMAIL PROTECTED] Apache Jetspeed - Enterprise Portal in Java http://portals.apache.org/

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



Reply via email to