You can do this by first adding this to your .xml portlet as a child of the node portlet:
<init-param> <name>config-jsp</name> <value>/html/config.jsp</value> </init-param>
In your liferay-portlet.xml you need to add this as a child of the portlet node:
<configuration-action-class>com.yourportlet.action.ConfigurationActionImpl</configuration-action-class>
Then you need to create these files in the directories that you specified in your XML, and your ConfigurationActionImpl must implement the ConfigurationAction interface so that the skeleton looks like this:
public class ConfigurationActionImpl implements ConfigurationAction { @Override public String render(PortletConfig config, RenderRequest renderRequest, RenderResponse renderResponse) throws Exception { return "/html/config.jsp"; }
Let me know if this helps or you have other questions! :)
Jonny source share