On Jun 1, 2004, at 6:32 AM, Sprang, Henning (Firma CS) wrote:

Hy,
I am working on a search engine for a jetspeed 1.5 Portal.
We have different types of content being displayed by different kinds of custom
Portlets we wrote, that are indexed by a search engine
we wrote for this task. The basic search algorithm used to find the content
items matching the users search criteria is already done.


The point now is, i need to find an URL to some portlet of the correct type
that is able to show the content element found by the search engine to present a list of links to found items to the user.


The first part, finding a portlet somewhere in the Portlet tree that matches my criteria,
is already done - even in two ways - i find a "good" portlet as well in the PsmlPortlets tree that starts with the profile i find in rundata, and i find a "good" portlet in the tree of portlets and portletsets that starts when i get my actual portlet by doing


        Context ctx = getContext(rundata);
        Portlet portlet = getPortlet(ctx);

An then iterating through the portletSets until i get a Portlet haveing the needed initParameters and stuff.

So far, everythings fine, but now, i can't find a reliable way to get an URL
to the portlet i finally find


Is there any "always-working" way to construct an URL to a Portlet when i have the full path to it in the mentioned PsmlProtlets and/or PortletSet tree, or even easiert with just knowing it's unique id?

Do you want to show the portlet standalone (without a page) or within the context of a page?
Look at JetspeedLink class.
You can create a link to any portlet in the system using a JetspeedLink by adding [user/role/group], page, portlet location on page




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



Reply via email to