Calling OOTB portlet struts actions

Sushil Patidar
Sushil Patidar
阅读少于一分钟

Many a time it is required to call OOTB portlet struts action from custom portlets.This can be done using the simple approach as follows.

 

public class TestPortlet extends MVCPortlet{
 
 @Override
 public void processAction(ActionRequest actionRequest,
 ActionResponse actionResponse)
 throws IOException, PortletException {
 
    try {
       
        PortletActionInvoker.processAction(
         "com.liferay.portlet.documentlibrary.action.EditFolderAction",                               getPortletConfig(),
          actionRequest, actionResponse);
 
     }
     catch(Exception e) {
 
        e.printStackTrace();
     }
}
 
}
页面评论

Related Assets...

未找到结果

More Blog Entries...

Ben Turner
四月 29, 2026
Ben Turner
四月 29, 2026