And where can we find that code?

-----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
>
>
>---------------------------------------------------------------------
>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]


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

Reply via email to