[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jetspeed-user
Subject:    Re: $jslink, what is the java equivalent?
From:       Raphael Luta <raphael () apache ! org>
Date:       2004-06-25 15:55:51
Message-ID: 40DC4B07.5090708 () apache ! org
[Download RAW message or body]

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:Archana.Turaga@intervoice.com]
> 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:sre@Cs.Nott.AC.UK] 
> 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 - raphael@apache.org
Apache Jetspeed - Enterprise Portal in Java
http://portals.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic