Liferay DXP Struts Action Override
Liferay DXP Struts Action Override Overview Struts Actions were used in Liferay 6.x as backend controllers for processing the client requests. They are deprecated already, and being replaced with MVC Commands. But there are still some struts actions inside Liferay. This article will explain how to identify and customize them. Identify Struts Action Struts Actions are defined in ROOT/WEB-INF/struts-config.xml file, sample: < action path ="/portal/sitemap" type ="com.liferay.portal.action.SitemapAction" /> This action is responsible for sitemap creation. Sitemap can be accessed using the /sitemap.xml URL, sample: Now let’s override this struts action. Override Struts Action Create a Liferay module for struts action override: build.gradle: dependencies { compileOnly group : "com.liferay.portal" , name : "release.portal.api" cssBuilder group : "com.liferay" , name : "com.liferay.css.builder" , version : "3.0....