return (String)request.getAttribute(StrutsPortlet.ORIGIN_URL);
}
private static PortletURL createPortletURL(ServletRequest request,
String pageURL, boolean actionURL)
{
RenderResponse renderResponse = (RenderResponse) request
.getAttribute("javax.portlet.response");
PortletURL portletURL;
if (actionURL)
portletURL = renderResponse.createActionURL();
else
portletURL = renderResponse.createRenderURL();
if (request instanceof HttpServletRequest)
{
String contextPath = ((HttpServletRequest) request)
.getContextPath();
if (pageURL.startsWith(contextPath))