沒有插件沒有,你不能這樣做。
- 最簡單的方法是使您的密碼檢查在javascript使用AJAX使用JSP掛鉤,並把這個代碼控制
forgot_password.jsp
2做也許這將是。 第二種方法是使一個Struts動作鉤子,你在你的Liferay-hook.xml附加覆蓋更新密碼的默認操作/login/forgot_password
form.For這樣的:
<struts-action>
<struts-action-path>/login/forgot_password</struts-action-path>
<struts-action-impl>com.myproject.hook.NewPasswordPortletAction</struts-action-impl>
</struts-action>
添加該n EW類項目的
public void processAction(
StrutsPortletAction originalStrutsPortletAction,
PortletConfig portletConfig, ActionRequest actionRequest,
ActionResponse actionResponse)
throws Exception {
//Custom code to handle password
//and than call original action handler if the password entered should be saved
originalStrutsPortletAction.processAction(
originalStrutsPortletAction, portletConfig, actionRequest,
actionResponse);
}
至於內線,你應該alwayes儘量不要使用它,因爲這可以用一個鉤子去用它來完成。
很好的回答。我建議去2代碼。也許你需要1才能正確顯示結果信息,但jsp不應該包含你的業務邏輯 –
完美。感謝您的幫助。 – HelmutSteiner
如果解決了您的問題,請接受答案... – KLajdPaja