Re: Struts Actions forwarding to Template JSPs
Serge Huber <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Wilhelm, [email protected] wrote: >"/jsp/jahia/templates/SITE_NAME/TEMPLATE_FOLDER_NAME/vcard_popup.jsp"); >} > >The problem arises, when we introduce more than one site on our portal. >Each site should have the v-Cards but maybe with diferent look&feel. >So my question: > >Is there a way to determine the template folder path for the site of the >current request dynamically? because now it is hardcoded > > Actually the way we do it is to get the template for the current page (JahiaPage.getPageTemplate().getSourcePath()), and then simply look for the last "/" in the path and replace it with your JSP name. Regards, Serge Huber.