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]



Reply via email to