Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Invalid
-
1.0.3
-
None
-
None
-
tomcat 5.5.17, exo-portlet-container
Description
The method StrutsPortletURL.createPortletURL should begin with the code:
===\/=\/=\/==========
RenderResponse renderResponse = (RenderResponse) request
.getAttribute("javax.portlet.response");
RenderRequest renderRequest = (RenderRequest) request
.getAttribute("javax.portlet.request");
PortletURL portletURL;
if (actionURL)
portletURL = renderResponse.createActionURL();
else
portletURL = renderResponse.createRenderURL();
try
{ portletURL.setPortletMode(renderRequest.getPortletMode()); portletURL.setWindowState(renderRequest.getWindowState()); }catch (Exception e)
{ System.out.println("[ERROR] StrutsPortletURL - " + e.getCause()); }===/\=/\=/\=========
instead the code:
===\/=\/=\/=========
RenderResponse renderResponse = (RenderResponse) request
.getAttribute("javax.portlet.response");
PortletURL portletURL;
if (actionURL)
portletURL = renderResponse.createActionURL();
else
portletURL = renderResponse.createRenderURL();
===/\=/\=/\=========