// get portlet navigational params
HashMap navParameters = new HashMap();
JetspeedRequestContext context = (JetspeedRequestContext) getAttribute("org.apache.jetspeed.request.RequestContext");
if (context != null)
{
NavigationalState ns = context.getPortalURL().getNavigationalState();
postAllowed = ns.getPortletWindowOfAction() != null || ns.getPortletWindowOfResource() != null;
Iterator iter = ns.getParameterNames(portletWindow);
while (iter.hasNext())
{
String name = (String) iter.next();
String[] values = ns.getParameterValues(portletWindow, name);
navParameters.put(name, values);
}
}
// now first merge the keys we have into one unique set