This command registry allows the server to look up an implementation and default parameters for a command interface.
There are two steps to register Controller command
1)Have to make an entry into CMDREG table
insert into CMDREG (STOREENT_ID, INTERFACENAME, DESCRIPTION, CLASSNAME, TARGET) values (0,'com.mycompany.commands.MyCatalogControllerCmd', 'This is a new controller command for a catalog', 'com.mycompany.commands.MyCatalogControllerCmdImpl','Local');
2)Register the same in struts-config-ext.xml file as below:
There are two steps to register Controller command
1)Have to make an entry into CMDREG table
insert into CMDREG (STOREENT_ID, INTERFACENAME, DESCRIPTION, CLASSNAME, TARGET) values (0,'com.mycompany.commands.MyCatalogControllerCmd', 'This is a new controller command for a catalog', 'com.mycompany.commands.MyCatalogControllerCmdImpl','Local');
2)Register the same in struts-config-ext.xml file as below:
- open \workspace\Stores\WebContent\WEB-INF\struts-config-ext.xml file
- <action path="/MyCatalogPage" type="com.ibm.commerce.struts.BaseAction" parameter="com.mycompany.commands.MyCatalogControllerCmd">
</action>
</action-mappings>