Best way is to create an IPortletURL via your page bean’s createRenderUrl() method. You can use this API to add parameters. For example, the following java code would create a portlet url, set it’s base to the alias of a page containing some other portlet, and configure the “myParam” parameter of that other portlet:
IPortletURL portletUrl = createRenderUrl();
// display some other page
portletUrl.setBaseURL(“/my.page.alias”);
// configure some other portlet
IPortletURL otherPortletUrl = url.addPortletURL(“other.portlet.alias”);
// set some parameter of the other portlet
otherPortletUrl.setParameter(“myParam”, “myValue”);
// set the value of a link control to this string:
String url = portletUrl.toString();
See “http://www.ajax-softwareag.com/articles/Y4LCDN/Caf-7-1-1JavaDocs/com/webMethods/caf/portlet/IPortletURL.html” for the IPortletURL javadocs.
Justin
#webMethods#MWS-CAF-Task-Engine#webMethods-BPMS