Forums de discussion

Application Adaptor

Hussain Shaikh, modifié il y a 7 années.

Application Adaptor

Junior Member Publications: 44 Date d'inscription: 07/06/12 Publications récentes
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, modifié il y a 7 années.

RE: Application Adaptor

Liferay Legend Publications: 2047 Date d'inscription: 07/10/08 Publications récentes
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, modifié il y a 7 années.

RE: Application Adaptor

Junior Member Publications: 44 Date d'inscription: 07/06/12 Publications récentes
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