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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.