Fórum

Application Adaptor

Hussain Shaikh, modificado 7 Anos atrás.

Application Adaptor

Junior Member Postagens: 44 Data de Entrada: 07/06/12 Postagens Recentes
Created Application Adapter for "session_timeout.jspf" . But it doesn't work, any idea why?

liferay-hook.xml
<hook>

<language-properties>content/Language_en.properties</language-properties>
<language-properties>content/Language_ar_SA.properties</language-properties>
<custom-jsp-dir>/custom_jsps</custom-jsp-dir>
<custom-jsp-global>false</custom-jsp-global>
</hook>

Path : /abc-site-hook/docroot/custom_jsps/html/common/themes/session_timeout.jspf

Applied this hook for site 'abc' through control panel.
thumbnail
Amos Fong, modificado 7 Anos atrás.

RE: Application Adaptor

Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Which Liferay version are you using? I think this should work. I think jspf files won't be recompiled though because the app server won't detect a change in the original jsp. Did you try restarting?

Can you try checking the app server to see if that jspf was actually replaced in your webapps folder?
Hussain Shaikh, modificado 7 Anos atrás.

RE: Application Adaptor

Junior Member Postagens: 44 Data de Entrada: 07/06/12 Postagens Recentes
I am using liferay v 6.1.1 on jBoss.
It didn't work as application adapter, i restarted and also checked in root folder for the respective file specific to hook, it was present there.

I somehow got it working, though.
I am not using application adapter now and included bottom.jsp, which is the parent jsp of session_timeout.jspf.

just this code works fine without application adapter in session_timeout.jspf,
if(friendlyURL.contains(SITE_NAME)){
sessionRedirectUrl = "/"+lang+"/web/site-name/login";
}

Thank