I am trying to override "/blogs/view_entry" struts path. Following is the entry in liferay-hook.xml
<struts-action>
<struts-action-path>/blogs/view_entry</struts-action-path>
<struts-action-impl>com.smb.hook.action.BlogCustomEditAction</struts-action-impl>
</struts-action>
Whenever I click on any blog entry in Blogs portlet, It redirects to
and blogs portlet becomes invisible.
At console, I can see the test print statement added in render method. After that following error message is logged:
ERROR [RuntimePageImpl-22][PortletRequestProcessor:466] Forward does not exist
Following are the methods overridden:
@Override
public void processAction(StrutsPortletAction originalStrutsPortletAction,
PortletConfig portletConfig, ActionRequest actionRequest,
ActionResponse actionResponse) throws Exception {
System.out.println("processAction :");
super.processAction(originalStrutsPortletAction, portletConfig, actionRequest,
actionResponse);
}
@Override
public String render(StrutsPortletAction originalStrutsPortletAction,
PortletConfig portletConfig, RenderRequest renderRequest,
RenderResponse renderResponse) throws Exception {
System.out.println("render :");
return super.render(originalStrutsPortletAction, portletConfig, renderRequest,
renderResponse);
}
@Override
public void serveResource(StrutsPortletAction originalStrutsPortletAction,
PortletConfig portletConfig, ResourceRequest resourceRequest,
ResourceResponse resourceResponse) throws Exception {
System.out.println("serveResource :");
super.serveResource(originalStrutsPortletAction, portletConfig,
resourceRequest, resourceResponse);
}
I have tried passing null for originalStrutsPortletAction as shown in one of the example on liferay dev site but no change in output.
Any help on this is appreciated.