data.setStackTrace(org.apache.turbine.util.StringUtils.stackTrace(other), other);
return;
}
RequestContextComponent contextComponent = null;
RequestContext context = null;
try
{
HttpServletRequest request = data.getRequest();
HttpServletResponse response = data.getResponse();
NavigationalStateComponent nav = (NavigationalStateComponent)Jetspeed.getComponentManager().getComponent(NavigationalStateComponent.class);
//
// Handle Action Phase via Action Pipeline
//
// System.out.println("*** ACTION PARAM FOUND!!!!!!!!!!! ****");
ServletConfig config = data.getServletConfig();
Engine engine = Jetspeed.getEngine();
contextComponent = (RequestContextComponent)Jetspeed.getComponentManager().getComponent(RequestContextComponent.class);
context = contextComponent.create(request, response, config);
//
// Sync up navigational state for J1 Portlet Control decorators
//
//if (state.)
//String state[] = nav.parsePortalParameter(request, "_ns"); // TODO don't hard code
//if (state != null)
context.setAttribute(PortalReservedParameters.PIPELINE, PortalReservedParameters.ACTION_PIPELINE);
engine.service(context);
PortalURL url = context.getPortalURL();
if (url != null)
{
NavigationalState state = url.getNavigationalState();
PortletWindow actionWindow = state.getPortletWindowOfAction();
if (actionWindow == null)