Foros de discusión

Application Adaptor

Hussain Shaikh, modificado hace 7 años.

Application Adaptor

Junior Member Mensajes: 44 Fecha de incorporación: 7/06/12 Mensajes recientes
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 hace 7 años.

RE: Application Adaptor

Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
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 hace 7 años.

RE: Application Adaptor

Junior Member Mensajes: 44 Fecha de incorporación: 7/06/12 Mensajes recientes
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