Sunday, February 10, 2013

STRUTS ACTION HOOK

To extend the CreateAccountAction ,  there are different types of hook to achieve  . Here we are going to discuss about Struts Action Hook. Steps 1 : Add the struts action path and your custom implementation file in liferay-hook.xml : <struts-action> <struts-action-path>/login/create_account</struts-action-path>  <struts-action-impl>com.liferay.login.hook.action.CustomCreateAccountAction</struts-action-impl> </struts-action> Step 2: Create custom implemetation file [CustomCreateAccountAction] in above mentioned location . [com.liferay.login.hook.action] public class CustomCreateAccountAction extends BaseStrutsPortletAction{ public CustomCreateAccountAction() { // TODO...

Pages 91234 »

Share & Enjoy

Twitter Delicious Facebook Digg Stumbleupon Favorites More